Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/pdf
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-07-19 17:58:44 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-07-19 17:58:44 (GMT)
commit479ac9953cc364161b7ec1541e6234223079d988 (patch)
treef2f65119a54da865ec08f09914e15c8a7d676035 /backend/pdf
parentf00d7c5897477b0b2bfa7ff7229c443ebb81a855 (diff)
Get max length of text form fields.
2007-07-19 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): Get max length of text form fields. svn path=/trunk/; revision=2575
Diffstat (limited to 'backend/pdf')
-rw-r--r--backend/pdf/ev-poppler.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 1c9f4ea..f96fdd4 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1841,7 +1841,10 @@ ev_form_field_from_poppler_field (PopplerFormField *poppler_field)
field_text->do_scroll = poppler_form_field_text_do_scroll (poppler_field);
field_text->is_rich_text = poppler_form_field_text_is_rich_text (poppler_field);
field_text->is_password = poppler_form_field_text_is_password (poppler_field);
-
+
+#ifdef HAVE_POPPLER_FORM_FIELD_TEXT_GET_MAX_LEN
+ field_text->max_len = poppler_form_field_text_get_max_len (poppler_field);
+#endif
field_text->text = poppler_form_field_text_get_text (poppler_field);
}