GTK graphics dialog: Default to scaling 100% when no scaling or size is given

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10764 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2006-01-21 20:48:26 +00:00
parent 8d74dd26d8
commit b9963e1a57
2 changed files with 5 additions and 1 deletions

View 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>

View 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();