From a5cc5dce3cf009d621685f01a885cfb0a02a50fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Fri, 15 May 2015 03:51:11 +0200 Subject: [PATCH] GuiBox.cpp: assure that the parameters are not empty --- src/frontends/qt4/GuiBox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); } -- 2.39.2