diff options
author | mascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647> | 2008-03-21 11:49:57 (GMT) |
---|---|---|
committer | mascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647> | 2008-03-21 11:49:57 (GMT) |
commit | 655ee75e3f70322c40629e1b1781bc16af51cf2b (patch) | |
tree | dfd8bc9df537db6e4c42363782aa456f9fabe636 /src/TextThought.py | |
parent | b9556541e52aac33825febf8d55830162126a596 (diff) |
2008-03-21 Martin Schaaf <mascha@ma-scha.de>
* src/DrawingThought.py
* src/MainWindow.py
* src/MMapArea.py
* src/Browser.py
* src/ImageThought.py
* src/TextThought.py
* data/labyrinth-ui.xml
* data/labyrinth.glade
o add import/export of maps (patch by Matthias Vogelgesang)
* Authors
o added Matthias Vogelgesang and me
git-svn-id: http://labyrinth.googlecode.com/svn/trunk@188 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r-- | src/TextThought.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py index 9f0cace..a4ad7c1 100644 --- a/src/TextThought.py +++ b/src/TextThought.py @@ -831,7 +831,10 @@ class TextThought (BaseThought.BaseThought): if text: self.extended_buffer.update_save() else: - self.element.removeChild(self.extended_buffer.element) + try: + self.element.removeChild(self.extended_buffer.element) + except xml.dom.NotFoundErr: + pass self.element.setAttribute ("cursor", str(self.index)) self.element.setAttribute ("selection_end", str(self.end_index)) self.element.setAttribute ("ul-coords", str(self.ul)) |