]> git.lyx.org Git - features.git/commitdiff
GTK graphics dialog: Default to scaling 100% when no scaling or size is given
authorJohn Spray <spray@lyx.org>
Sat, 21 Jan 2006 20:48:26 +0000 (20:48 +0000)
committerJohn Spray <spray@lyx.org>
Sat, 21 Jan 2006 20:48:26 +0000 (20:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10764 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/ChangeLog
src/frontends/gtk/GGraphics.C

index 52c558f66f68e3d9057d15ca308deeae153e253a..41aed98f365fe92532e443166974c8398d1fdee6 100644 (file)
@@ -5,6 +5,7 @@
        * GDocument.[Ch], glade/document.glade: Add more functionality
          to the still-incomplete document dialog.
        * Alert_pimpl.C: Make generic dialogs use the titles LyX gives them
+       * GGraphics.C: Default to scaling 100% when no scaling or size is given
 
 2006-01-20  Bernhard Reiter  <ockham@gmx.net>
 
index 331ed43e30677f5b0615eea9bc7f614b95736eac..3f5ea476e97130cadd3581aab02bd4ed0c40077e 100644 (file)
@@ -384,8 +384,11 @@ void GGraphics::update() {
                && !float_equal(convert<double>(igp.scale), 0.0, 0.05)) {
                // scaling sizing mode
                setscalingradio_->set_active(true);
-       } else {
+       } else if (!igp.width.empty() && !igp.height.empty()) {
                setsizeradio_->set_active(true);
+       } else {
+               outputscalespin_->get_adjustment()->set_value(100.0);
+               setscalingradio_->set_active(true);
        }
        onSizingModeChange();