summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-07-20 13:11:10 +0000
committerMalte Timmermann <mt@openoffice.org>2001-07-20 13:11:10 +0000
commit017bf752854b27f033d7c6c459ccd55beb7c7f69 (patch)
tree8fa695b1b8ade0fdf8e92f44cb30c647ba7d7fee /vcl
parent88328822ded74eb5b58b5284adac12f7a0321187 (diff)
Little optimization...
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field2.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 82a63d9bca5c..700d591e5b72 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: field2.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: mt $ $Date: 2001-07-20 13:19:24 $
+ * last change: $Author: mt $ $Date: 2001-07-20 14:11:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1715,8 +1715,11 @@ void DateFormatter::SetLongFormat( BOOL bLong )
void DateFormatter::SetShowDateCentury( BOOL bLong )
{
- mbShowDateCentury = bLong;
- ReformatAll();
+ if ( mbShowDateCentury != bLong )
+ {
+ mbShowDateCentury = bLong;
+ ReformatAll();
+ }
}
// -----------------------------------------------------------------------