From 510b77ac259878d4d2765206c6ca23d517afdc6c Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 11 Apr 2002 18:39:17 +0000 Subject: [PATCH] (Herbert): allow the rotation of a graphic by 270.1 degrees and add "mm" to the choice of Bounding Box units. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3975 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 6 ++++++ src/frontends/xforms/FormGraphics.C | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 38dfafdc9a..00067cc2a9 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,9 @@ +2002-04-09 Herbert Voss + + * FormGraphics.C: allow rotate-values like 270.1 + * xformsGImage.C (rotate): get the right rotate-angle from + GraphicParams + 2002-04-08 Angus Leeming * xformsGImage.C (clip): no need to check if the width, height are > 0 diff --git a/src/frontends/xforms/FormGraphics.C b/src/frontends/xforms/FormGraphics.C index 38866c2af4..6b43148610 100644 --- a/src/frontends/xforms/FormGraphics.C +++ b/src/frontends/xforms/FormGraphics.C @@ -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); -- 2.39.2