mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 11:40:35 +02:00
IDE: removed Qt/Qt5 workaround , fixed issue #36874
git-svn-id: trunk@62888 -
This commit is contained in:
parent
c51ee7a11e
commit
114f2092b1
@ -540,15 +540,6 @@ begin
|
||||
|
||||
Result := WindowClientRect.Top - WindowRect.Top;
|
||||
|
||||
{$IF DEFINED(LCLQt) OR DEFINED(LCLQt5)}
|
||||
// ToDo: fix this properly for QT.
|
||||
// Result can be negative (-560) when both Coolbar and Palette are hidden.
|
||||
if Result < 0 then
|
||||
begin
|
||||
DebugLn(['TMainIDEBar.CalcNonClientHeight: Height ',Result,' is below zero. Forcing it to 55.']);
|
||||
Result := 55;
|
||||
end;
|
||||
{$ENDIF LCLQt}
|
||||
Assert(Result >= 0, 'TMainIDEBar.CalcNonClientHeight: Result '+IntToStr(Result)+' is below zero.');
|
||||
|
||||
{$IFDEF LCLWin32}
|
||||
|
Loading…
Reference in New Issue
Block a user