Skip to content

Commit

Permalink
Allow zero or negative newline spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rob committed Nov 28, 2019
1 parent ff92e98 commit 8bc4629
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/gui/guiFormSpecMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,12 +1409,7 @@ void GUIFormSpecMenu::parseLabelOptions(parserData* data, const std::string &ele
if (y_align == "bottom")
y = gui::EGUIA_LOWERRIGHT;

if (spacing > 0)
data->labelOptions.spacing = spacing;
else
if (trim(parts[2]) == "")
warningstream << "Invalid labeloptions spacing(" << spacing << "): '" <<
element << "'" << std::endl;
data->labelOptions.spacing = spacing;

data->labelOptions.X = x;
data->labelOptions.Y = y;
Expand Down

0 comments on commit 8bc4629

Please sign in to comment.