https://bugs.kde.org/show_bug.cgi?id=427858

Tymond <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/ec67f1fff |hics/krita/commit/56133bf77
                   |4c342af5a6ec5615a71f1dd7ad2 |6e0dcc98adecc9d43cffa923010
                   |aa3f                        |632c

--- Comment #5 from Tymond <[email protected]> ---
Git commit 56133bf776e0dcc98adecc9d43cffa923010632c by Agata Cacko.
Committed on 27/10/2020 at 15:00.
Pushed by tymond into branch 'krita/4.4.0'.

Fix crash in Text Tool on double-click

Before this commit, if the user would double-click on the text shape
while using a text tool, it would first show an editor with an empty
text box, and then if the user does something else without changing the
content (like Save, or switch to SVG) which would trigger conversion
to shape or SVG, then Krita would crash.

It was caused by double-click causing three events to be fired:
- double-click
- mouse release
- another mouse release.
In all three cases showEditor() would be called, including
setInitialShape() function which is called inside.

This commit fixes this behaviour by checking if the editor is already
visible, and if yes, then not trying to set initial shape or show the
editor since it's not necessary anymore.


(cherry picked from commit 9a7910865e06be82d2a10d044a6ec0c2f04dac99)

M  +4    -2    plugins/tools/svgtexttool/SvgTextTool.cpp

https://invent.kde.org/graphics/krita/commit/56133bf776e0dcc98adecc9d43cffa923010632c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to