From c44f4d335f75f9f0226cf6b07b70bfbb500cba63 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 26 Sep 2012 14:11:53 +0100 Subject: reduce size requests if new text is same as old Change-Id: I6e9b03c4baf05d096aa780b4f6d8635bb1e254ac --- vcl/source/window/window.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl') 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 ); -- cgit