mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
do not leak the text selection when stopping the construction of a text highlight annotation
svn path=/trunk/KDE/kdegraphics/okular/; revision=752760
This commit is contained in:
parent
8f40bfdb21
commit
a02131d6a9
1 changed files with 5 additions and 0 deletions
|
@ -435,6 +435,11 @@ class TextSelectorEngine : public AnnotatorEngine
|
|||
// parse engine specific attributes
|
||||
}
|
||||
|
||||
~TextSelectorEngine()
|
||||
{
|
||||
delete selection;
|
||||
}
|
||||
|
||||
QRect event( EventType type, Button button, double nX, double nY, double xScale, double yScale, const Okular::Page * /*page*/ )
|
||||
{
|
||||
// only proceed if pressing left button
|
||||
|
|
Loading…
Reference in a new issue