this patch changes the unit "pt" in FormGraphics.C to the
correct one "bp" (PostScript unit), also called BigPoint

Herbert

-- 
http://www.lyx.org/help/
Index: src/frontends/xforms/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v
retrieving revision 1.343
diff -u -r1.343 ChangeLog
--- src/frontends/xforms/ChangeLog      5 Apr 2002 09:18:26 -0000       1.343
+++ src/frontends/xforms/ChangeLog      5 Apr 2002 11:26:21 -0000
@@ -1,3 +1,8 @@
+2002-04-05  Herbert Voss  <[EMAIL PROTECTED]>
+
+       * FormGraphics.C: use correct unit bp (big point - PostScript point)
+       for the bounding box values
+
 2002-04-05  Angus Leeming  <[EMAIL PROTECTED]>
 
        * FormGraphics.C (updateBB, input): Don't set the path of the file
Index: src/frontends/xforms/FormGraphics.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormGraphics.C,v
retrieving revision 1.66
diff -u -r1.66 FormGraphics.C
--- src/frontends/xforms/FormGraphics.C 5 Apr 2002 09:18:26 -0000       1.66
+++ src/frontends/xforms/FormGraphics.C 5 Apr 2002 11:26:21 -0000
@@ -169,7 +169,7 @@
        setPrehandler(bbox_->input_bb_x1);
        setPrehandler(bbox_->input_bb_y1);
 
-       string const bb_units = "pt|cm|in";
+       string const bb_units = "bp|cm|in";
        fl_addto_choice(bbox_->choice_bb_units, bb_units.c_str());
        bc().addReadOnly(bbox_->button_getBB);
        bc().addReadOnly(bbox_->check_clip);
@@ -296,6 +296,7 @@
 }
 
 
+
 void FormGraphics::update() {
        // Update dialog with details from inset
        InsetGraphicsParams & igp = controller().params();
@@ -453,7 +454,7 @@
                        fl_set_input(bbox_->input_bb_x1, bb.c_str());
                        fl_set_input(bbox_->input_bb_y1, bb.c_str());
                }
-               // "pt"
+               // "bp"
                fl_set_choice(bbox_->choice_bb_units, 1);
 
        } else {
@@ -464,16 +465,16 @@
                LyXLength anyLength;
                anyLength = LyXLength(token(bb_inset,' ',0));
                updateWidgetsFromLength(bbox_->input_bb_x0,
-                                       bbox_->choice_bb_units,anyLength,"pt");
+                                       bbox_->choice_bb_units,anyLength,"bp");
                anyLength = LyXLength(token(bb_inset,' ',1));
                updateWidgetsFromLength(bbox_->input_bb_y0,
-                                       bbox_->choice_bb_units,anyLength,"pt");
+                                       bbox_->choice_bb_units,anyLength,"bp");
                anyLength = LyXLength(token(bb_inset,' ',2));
                updateWidgetsFromLength(bbox_->input_bb_x1,
-                                       bbox_->choice_bb_units,anyLength,"pt");
+                                       bbox_->choice_bb_units,anyLength,"bp");
                anyLength = LyXLength(token(bb_inset,' ',3));
                updateWidgetsFromLength(bbox_->input_bb_y1,
-                                       bbox_->choice_bb_units,anyLength,"pt");
+                                       bbox_->choice_bb_units,anyLength,"bp");
        }
 }
 
@@ -590,7 +591,7 @@
                                fl_set_input(bbox_->input_bb_y0, token(bb,' 
',1).c_str());
                                fl_set_input(bbox_->input_bb_x1, token(bb,' 
',2).c_str());
                                fl_set_input(bbox_->input_bb_y1, token(bb,' 
',3).c_str());
-                               string const unit("pt");
+                               string const unit("bp");
                                fl_set_choice_text(bbox_->choice_bb_units, 
unit.c_str());
                        }
                        controller().bbChanged = false;
@@ -599,7 +600,7 @@
                        fl_set_input(bbox_->input_bb_y0, "");
                        fl_set_input(bbox_->input_bb_x1, "");
                        fl_set_input(bbox_->input_bb_y1, "");
-                       fl_set_choice_text(bbox_->choice_bb_units, "pt");
+                       fl_set_choice_text(bbox_->choice_bb_units, "bp");
                }
 
                // the size section

Reply via email to