]> git.lyx.org Git - features.git/commitdiff
Yet another tweak from J�rgen.
authorAngus Leeming <leeming@lyx.org>
Wed, 30 Jan 2002 19:36:39 +0000 (19:36 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 30 Jan 2002 19:36:39 +0000 (19:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3463 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormGraphics.C

index f469551a78cb3a3c94066e1d17b3b5db67b9c5f6..52393d778d386e553e381dd5d47edff5c36feacc 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-30  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * FormGraphics.C: Fix MAXDIGIT values for height and width.
+
 2002-01-30  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * forms/form_citation: a few tweaks of my own.
index 747735d4b241a820379922b02ef58132966c5e02..e88aab309b554a4ba338f364f9085a15b07d9df5 100644 (file)
@@ -37,8 +37,8 @@ namespace {
 
 // Bound the number of input characters
 int const SCALE_MAXDIGITS = 3;
-int const WIDTH_MAXDIGITS = 3;
-int const HEIGHT_MAXDIGITS = 3;
+int const WIDTH_MAXDIGITS = 10;
+int const HEIGHT_MAXDIGITS = 10;
 int const ROTATE_MAXCHARS = 4;
 int const FILENAME_MAXCHARS = 1024;
  
@@ -432,10 +432,6 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
        } else if (ob == dialog_->button_help) {
            controller().help();
        }
-               // Put verifications that the dialog shows some sane values,
-       // if not disallow clicking on ok/apply.
-       // Possibly use a label in the bottom of the dialog to give the reason.
-       ButtonPolicy::SMInput activate = ButtonPolicy::SMI_VALID;
 
        // check if the input is valid
        bool invalid = !isValid(bbox_->input_bb_x0);
@@ -461,13 +457,12 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
                        fl_set_object_label(dialog_->text_warning,
                                _("Warning: Invalid Length!"));
                        fl_show_object(dialog_->text_warning);
-                       activate = ButtonPolicy::SMI_INVALID;
+                       return ButtonPolicy::SMI_INVALID;
                } else {
                        fl_hide_object(dialog_->text_warning);
-                       activate = ButtonPolicy::SMI_VALID;
                }
-               return activate;
        }
+
        return checkInput();
 }