]> git.lyx.org Git - features.git/blobdiff - src/frontends/xforms/FormGraphics.C
(Herbert): allow the rotation of a graphic by 270.1 degrees and add "mm"
[features.git] / src / frontends / xforms / FormGraphics.C
index 38866c2af45afe07bd97621f87f08817541a05c1..6b43148610f3654c7eb818c8ff97af4a7a4cbd6d 100644 (file)
@@ -32,10 +32,10 @@ using std::endl;
 namespace {
 
 // Bound the number of input characters
-int const SCALE_MAXDIGITS = 3;
+int const SCALE_MAXDIGITS = 3;         // %-value
 int const WIDTH_MAXDIGITS = 10;
 int const HEIGHT_MAXDIGITS = 10;
-int const ROTATE_MAXCHARS = 4;
+int const ROTATE_MAXCHARS = 5;         // like 270.1
 int const FILENAME_MAXCHARS = 1024;
 string defaultUnit("cm");
 
@@ -169,7 +169,7 @@ void FormGraphics::build()
        setPrehandler(bbox_->input_bb_x1);
        setPrehandler(bbox_->input_bb_y1);
 
-       string const bb_units = "bp|cm|in";
+       string const bb_units = "bp|cm|mm|in";
        fl_addto_choice(bbox_->choice_bb_units, bb_units.c_str());
        bc().addReadOnly(bbox_->button_getBB);
        bc().addReadOnly(bbox_->check_clip);