Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi All,

In cursor.cxx I found 2 lines accidentally deleted by this patch it seems :
"vcl119: #i80730# fix cursor paint behavior and timer"

I've tried to find an explication of this deleted ligne, but without Timer.Stop() I don't understand how it can work correctly. I'm not sure of that. It's preferable than an expert have a look to my patch before pushed it.

Best regard

Bob

From 2150718d3a241e81b00478dec84122d773f0211b Mon Sep 17 00:00:00 2001
From: Robert Dargaud <libo@bobiciel.com>
Date: Wed, 20 Apr 2011 23:15:16 +0200
Subject: [PATCH] fix fdo#bug 36404 -More than one text cursor at the same time in textfields

---
 vcl/source/window/cursor.cxx |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index f3c75dd..9aaccff 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -225,6 +225,7 @@ bool Cursor::ImplHide()
         bWasCurVisible = mpData->mbCurVisible;
         if ( mpData->mbCurVisible )
             ImplRestore();
+        mpData->maTimer.Stop();
     }
     return bWasCurVisible;
 }
-- 
1.7.1

From f6753885e887afdd9e219b5a1fc63d079164ce01 Mon Sep 17 00:00:00 2001
From: Robert Dargaud <libo@bobiciel.com>
Date: Wed, 20 Apr 2011 23:32:00 +0200
Subject: [PATCH] fix fdo#bug 36404 -More than one text cursor at the same time in textfields

---
 vcl/source/window/cursor.cxx |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 9aaccff..7e485ba 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -226,6 +226,7 @@ bool Cursor::ImplHide()
         if ( mpData->mbCurVisible )
             ImplRestore();
         mpData->maTimer.Stop();
+        mpData->mpWindow = NULL;
     }
     return bWasCurVisible;
 }
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.