Mercurial > octave
changeset 28743:2cb815b72d2f stable
fix moving find dialog for linux (bug #59047)
* find-dialog.cc (update_edit_area): take differecne between geometry and frame
geometry into conideration
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Mon, 14 Sep 2020 21:36:31 +0200 |
parents | 6d35c0db5d2f |
children | 56b9a468145a |
files | libgui/src/m-editor/find-dialog.cc |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.cc Fri Sep 11 20:20:01 2020 +0200 +++ b/libgui/src/m-editor/find-dialog.cc Mon Sep 14 21:36:31 2020 +0200 @@ -224,7 +224,14 @@ // Save position QPoint dlg_pos = pos (); - m_last_position = QPoint (dlg_pos.x (), dlg_pos.y ()); + +#if defined (Q_OS_WIN32) + int y = dlg_pos.y (); +#else + int y = dlg_pos.y () - geometry ().height () + frameGeometry ().height (); +#endif + + m_last_position = QPoint (dlg_pos.x (), y); s->setValue (ed_fdlg_pos.key, m_last_position);