From: Uwe Stöhr Date: Sat, 25 May 2013 11:52:09 +0000 (+0200) Subject: GuiBox.cpp: addendum to [f04c7711/lyxgit] X-Git-Tag: 2.1.0beta1~165 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=472732f92d7287c47ff1003094df5f6826c15c2e;p=lyx.git GuiBox.cpp: addendum to [f04c7711/lyxgit] - this was forgotten to commit; (without this we would get invalid LaTeX code when changing in the box dialog a makebox without a width to a minipage and press apply - a makebox required to specify a width, at least an invisible one like "0cm") --- diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index 90f5659439..afca9ab522 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -378,6 +378,9 @@ docstring GuiBox::dialogToParams() const params.width = Length(value.toDouble(), Length::IN); } else { params.special = "none"; + // we must specify a valid length in this case + if (value.isEmpty()) + widthED->setText("0"); params.width = Length(widgetsToLength(widthED, widthUnitsLC)); } } else {