Fix update() of GTK wrap dialog for default placement

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13252 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2006-02-17 01:39:07 +00:00
parent c822a28e39
commit dfaf9a11a1
2 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@
needed by some dialogs. More investigation needed.
* GTableCreate.C: Fix rows and columns being switched
* GMenubar.C: Escape underscores in menu labels
* GWrap.C: Cope with empty placement string for default placement
2006-02-14 John Spray <spray@lyx.org>
* GPainter.[Ch], xftFontMetrics.C: Remove broken multibyte

View File

@ -73,6 +73,8 @@ void GWrap::update()
item = 2;
else if (params.placement == "p")
item = 3;
else
item = 0; // default
placementcombo_->set_active (item);
@ -87,11 +89,11 @@ void GWrap::apply()
if (applylock_)
return;
InsetWrapParams & params = controller().params();
InsetWrapParams & params = controller().params();
params.width = widthlengthentry_->get_length();
params.width = widthlengthentry_->get_length();
int const placementrow = placementcombo_->get_active_row_number();
int const placementrow = placementcombo_->get_active_row_number();
BOOST_ASSERT (0 <= placementrow <= 3);
switch (placementrow) {
case 1: