From 8ea2301d16c15b7878393ea6006b4d00fcb78b1e Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 27 Mar 2024 10:22:54 +0100 Subject: [PATCH] pgui: Fix PGEntry::get_cursor_Y() It returned the Y position, which is always 0.0, instead of the Z position. Fixes #1633 --- panda/src/pgui/pgEntry.I | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/panda/src/pgui/pgEntry.I b/panda/src/pgui/pgEntry.I index e758a7ff8c..61262d87aa 100644 --- a/panda/src/pgui/pgEntry.I +++ b/panda/src/pgui/pgEntry.I @@ -134,7 +134,6 @@ get_cursor_position() const { /** * Returns the node position x of the cursor */ - INLINE PN_stdfloat PGEntry:: get_cursor_X() const { LightReMutexHolder holder(_lock); @@ -144,14 +143,12 @@ get_cursor_X() const { /** * Returns the node position y of the cursor */ - INLINE PN_stdfloat PGEntry:: get_cursor_Y() const { LightReMutexHolder holder(_lock); - return _cursor_def.get_y(); + return _cursor_def.get_z(); } - /** * Sets the maximum number of characters that may be typed into the entry. * This is a limit on the number of characters, as opposed to the width of the