summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-26 14:11:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:53 +0100
commitc44f4d335f75f9f0226cf6b07b70bfbb500cba63 (patch)
treeec4eb99ec7743f214fe6849b7627453dc2ae0de4 /vcl
parent76b7acf0d25b257ef70dad9b3ecdde3434ca6b78 (diff)
reduce size requests if new text is same as old
Change-Id: I6e9b03c4baf05d096aa780b4f6d8635bb1e254ac
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 88df1b407c2a..07311a980058 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -7871,6 +7871,9 @@ void Window::SetCursor( Cursor* pCursor )
void Window::SetText( const XubString& rStr )
{
+ if (rStr == mpWindowImpl->maText)
+ return;
+
DBG_CHKTHIS( Window, ImplDbgCheckWindow );
String oldTitle( mpWindowImpl->maText );