aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-01-22 19:23:04 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-25 11:18:54 +0100
commitfa985a0e4b709bf41e961075a071de30e9f8ea2d (patch)
treedbc502a10f3db8f7443a2ededf142c0c10d34ee4
parente5fa1aa39cd2a621c1618abcf6e4ff040c97a569 (diff)
vcl: fix SalGtkXWindow::getPosSize()
This function was introduced with commit 9869ca098765ed5ec0325492fa2cdce4a5bab795 and never existed on master? Very mysterious... vcl/unx/gtk3/gtk3gtkinst.cxx:13213:46: error: ‘y’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 13213 | return css::awt::Rectangle(x, y, w, h); Change-Id: I277253be7302ec04961b918c8588b441e6e87ba5
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 247d72917f69..ff2095c32621 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -13209,7 +13209,7 @@ css::awt::Rectangle SAL_CALL SalGtkXWindow::getPosSize()
{
gint w, h, x, y;
gtk_window_get_size(GTK_WINDOW(m_pWidget), &w, &h);
- gtk_window_get_position(GTK_WINDOW(m_pWidget), &x, &x);
+ gtk_window_get_position(GTK_WINDOW(m_pWidget), &x, &y);
return css::awt::Rectangle(x, y, w, h);
}
else {