summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-03-07 14:05:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-07 14:06:17 +0000
commit5ecb308bd3e8381d86f57206c0eed5f32d459956 (patch)
treead0de6bd4115ef111c24fdd5d6df51cb5f930fc0 /xmlsecurity
parent69b76536a033cefed8e024557742a9988b949d62 (diff)
rename setInitialLayoutSize to setOptimalLayoutSize
and add a mechanism to know that we're in true initial layout mode Change-Id: I4ff61160ae67a7ccf1cb8b25c41870c195d32b94
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/macrosecurity.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx
index fe77313acbd7..3a0a745fe203 100644
--- a/xmlsecurity/source/dialogs/macrosecurity.cxx
+++ b/xmlsecurity/source/dialogs/macrosecurity.cxx
@@ -25,6 +25,7 @@
#include <osl/file.hxx>
#include <vcl/help.hxx>
+#include <vcl/layout.hxx>
#include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
@@ -334,9 +335,12 @@ public:
virtual void Resize()
{
SvxSimpleTable::Resize();
- const long nControlWidth = GetSizePixel().Width();
- long aTabLocs[] = { 3, 0, 35*nControlWidth/100, 70*nControlWidth/100 };
- SvxSimpleTable::SetTabs(aTabLocs, MAP_PIXEL);
+ if (isInitialLayout(this))
+ {
+ const long nControlWidth = GetSizePixel().Width();
+ long aTabLocs[] = { 3, 0, 35*nControlWidth/100, 70*nControlWidth/100 };
+ SvxSimpleTable::SetTabs(aTabLocs, MAP_PIXEL);
+ }
}
};