From: Uwe Stöhr Date: Fri, 15 May 2015 01:51:11 +0000 (+0200) Subject: GuiBox.cpp: assure that the parameters are not empty X-Git-Tag: 2.2.0alpha1~834 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a5cc5dce3cf009d621685f01a885cfb0a02a50fb;p=features.git GuiBox.cpp: assure that the parameters are not empty --- diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index 2463dfa8ca..ccf6cd76a7 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -26,8 +26,8 @@ #include "support/foreach.h" #include "support/lstrings.h" -#include #include +#include #ifdef IN #undef IN @@ -390,15 +390,15 @@ docstring GuiBox::dialogToParams() const if (thicknessED->isEnabled()) params.thickness = Length(widgetsToLength(thicknessED, thicknessUnitsLC)); else - params.thickness = Length(); + params.thickness = Length("0.4pt"); if (separationED->isEnabled()) params.separation = Length(widgetsToLength(separationED, separationUnitsLC)); else - params.separation = Length(); + params.separation = Length("3pt"); if (separationED->isEnabled()) params.shadowsize = Length(widgetsToLength(shadowsizeED, shadowsizeUnitsLC)); else - params.shadowsize = Length(); + params.shadowsize = Length("4pt"); return from_ascii(InsetBox::params2string(params)); }