From 87abe4ce7ee8515c9775972027d0803e4d6f1577 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 2 Apr 2009 10:42:31 +0000 Subject: [PATCH] changed: after setting compact view and then normal view the program restores the vertical size of the last used window git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@119 e52654a7-88a9-db11-a3e9-0013d4bc506e --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b5c8672..4f1151f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -730,7 +730,7 @@ POINT p; TabWindowFunctions::SetSizeOfFunctionsList(tab, cx, cy-p.y, borderx, bordery); TabWindowFunctions::SetSizeOfConvertingLists(tab, cx, cy-p.y, borderx, bordery); - if( fwSizeType != SIZE_MINIMIZED ) + if( fwSizeType != SIZE_MINIMIZED && GetPrgRes()->GetView() != ProgramResources::view_compact ) { GetWindowRect(hWnd,&r); GetPrgRes()->SetXSize( r.right - r.left );