[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] plugins/textshape: Fix clicking in a selection does not update the caret.
From: Pierre Stirnweiss <pstirnweiss () googlemail ! com>
Date: 2012-12-23 12:53:58
Message-ID: 20121223125358.EA73BA6091 () git ! kde ! org
[Download RAW message or body]
Git commit 7deaf573d92f8ab4316deb29dda64b209039186a by Pierre Stirnweiss.
Committed on 23/12/2012 at 13:31.
Pushed by pstirnweiss into branch 'master'.
Fix clicking in a selection does not update the caret.
Initialize m_drag in the TextTool solves the problem somehow.
REVIEW: 107849
M +20 -19 plugins/textshape/TextTool.cpp
http://commits.kde.org/calligra/7deaf573d92f8ab4316deb29dda64b209039186a
diff --git a/plugins/textshape/TextTool.cpp b/plugins/textshape/TextTool.cpp
index 24f50e2..148806c 100644
--- a/plugins/textshape/TextTool.cpp
+++ b/plugins/textshape/TextTool.cpp
@@ -125,27 +125,28 @@ static bool hit(const QKeySequence &input, KStandardShortcut::StandardShortcut s
}
TextTool::TextTool(KoCanvasBase *canvas)
- : KoToolBase(canvas),
- m_textShape(0),
- m_textShapeData(0),
- m_changeTracker(0),
- m_allowActions(true),
- m_allowAddUndoCommand(true),
- m_allowResourceManagerUpdates(true),
- m_prevCursorPosition(-1),
- m_caretTimer(this),
- m_caretTimerState(true),
- m_currentCommand(0),
- m_currentCommandHasChildren(false),
- m_specialCharacterDocker(0),
- m_textTyping(false),
- m_textDeleting(false)
- , m_editTipTimer(this),
- m_delayedEnsureVisible(false),
- m_toolSelection(0)
+ : KoToolBase(canvas)
+ , m_textShape(0)
+ , m_textShapeData(0)
+ , m_changeTracker(0)
+ , m_allowActions(true)
+ , m_allowAddUndoCommand(true)
+ , m_allowResourceManagerUpdates(true)
+ , m_prevCursorPosition(-1)
+ , m_caretTimer(this)
+ , m_caretTimerState(true)
+ , m_currentCommand(0)
+ , m_currentCommandHasChildren(false)
+ , m_specialCharacterDocker(0)
+ , m_textTyping(false)
+ , m_textDeleting(false)
+ , m_editTipTimer(this)
+ , m_delayedEnsureVisible(false)
+ , m_toolSelection(0)
, m_tableDraggedOnce(false)
, m_tablePenMode(false)
- ,m_lastImMicroFocus(QRectF(0,0,0,0))
+ , m_lastImMicroFocus(QRectF(0,0,0,0))
+ , m_drag(0)
{
setTextMode(true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic