Skip to content

Commit

Permalink
Issue 981: Allow negative linespace
Browse files Browse the repository at this point in the history
We should allow negative linespace, this was accidentally regressed in
commit 2c3c7c2. Removes the invalid < 0 check.
  • Loading branch information
jgehrig committed Jun 8, 2022
1 parent 6291e61 commit e6115d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ void Shell::handleLineSpace(const QVariant& value) noexcept
bool isValid{ false };
int linespace{ value.toInt(&isValid) };

if (!isValid || linespace < 0) {
if (!isValid) {
qDebug() << "Invalid GuiLinespace value:" << value;
return;
}
Expand Down

0 comments on commit e6115d5

Please # to comment.