fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / khtml / editing / editing.cpp
blob1fa5edaf73d51516ab4237618c1c89fa87e306ef
1 /* This file is part of the KDE project
3 * Copyright (C) 2004 Leo Savernik <l.savernik@aon.at>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #include "editing_p.h"
23 #include "editor.h"
25 using DOM::Selection;
26 using namespace khtml;
28 EditorContext::~EditorContext() {
29 delete m_editor;
32 void EditorContext::reset() {
33 m_selection = Selection();
34 m_dragCaret = Selection();
36 m_caretBlinkTimer = -1;
37 m_caretVisible = true;
38 m_caretBlinks = true;
39 m_caretPaint = true;
40 m_beganSelectingText = false;
42 delete m_editor;
43 m_editor = 0;