diff options
Diffstat (limited to 'Libraries/LibGUI/GScrollableWidget.cpp')
-rw-r--r-- | Libraries/LibGUI/GScrollableWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GScrollableWidget.cpp b/Libraries/LibGUI/GScrollableWidget.cpp index f0141bce78..91df270035 100644 --- a/Libraries/LibGUI/GScrollableWidget.cpp +++ b/Libraries/LibGUI/GScrollableWidget.cpp @@ -209,7 +209,7 @@ Gfx::Rect ScrollableWidget::widget_inner_rect() const return rect; } -Point ScrollableWidget::to_content_position(const Gfx::Point& widget_position) const +Gfx::Point ScrollableWidget::to_content_position(const Gfx::Point& widget_position) const { auto content_position = widget_position; content_position.move_by(horizontal_scrollbar().value(), vertical_scrollbar().value()); @@ -217,7 +217,7 @@ Point ScrollableWidget::to_content_position(const Gfx::Point& widget_position) c return content_position; } -Point ScrollableWidget::to_widget_position(const Gfx::Point& content_position) const +Gfx::Point ScrollableWidget::to_widget_position(const Gfx::Point& content_position) const { auto widget_position = content_position; widget_position.move_by(-horizontal_scrollbar().value(), -vertical_scrollbar().value()); |