From 472732f92d7287c47ff1003094df5f6826c15c2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 25 May 2013 13:52:09 +0200 Subject: [PATCH] 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") --- src/frontends/qt4/GuiBox.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.5