Skip to content

Commit

Permalink
fix #1333
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Mar 15, 2024
1 parent 906c39f commit 8e50ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librssguard/gui/guiutilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void GuiUtilities::fixTooBigDialog(QWidget& widget, bool move_to_center) {

auto pos_widget = widget.pos();

if (move_to_center || pos_widget.x() < 0 || pos_widget.y()) {
if (move_to_center || pos_widget.x() < 0 || pos_widget.y() < 0) {
// Calculate ideal position for centering the widget.
auto size_parent = widget.parentWidget() != nullptr ? widget.parentWidget()->size() : QSize(0, 0);

Expand Down

0 comments on commit 8e50ba8

Please sign in to comment.