From df5e5b26c586d27bc47ee5d852f3a47a3b72001a Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Tue, 27 Feb 2024 11:28:00 +0800 Subject: [PATCH] When initializing the window, do not use top values less than 0 --- DSView/pv/mainframe.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DSView/pv/mainframe.cpp b/DSView/pv/mainframe.cpp index 649a8266..f07ccf4b 100644 --- a/DSView/pv/mainframe.cpp +++ b/DSView/pv/mainframe.cpp @@ -709,6 +709,10 @@ void MainFrame::ShowFormInit() { ReadSettings(); + if (_initWndInfo.r.y < 0){ + _initWndInfo.r.y = 0; + } + int x = _initWndInfo.r.x; int y = _initWndInfo.r.y; int w = _initWndInfo.r.w;