Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authormascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647>2008-03-21 20:53:36 (GMT)
committer mascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647>2008-03-21 20:53:36 (GMT)
commit62fac9a15d3fef53805a1cf2ade6adc63c90fda0 (patch)
tree66f472c304431082abdcbef5fa446077fb1fcfbc /src/TextThought.py
parent295ee652b1cb0472032c507b41a993f0aa80dbaa (diff)
2008-03-21 Martin Schaaf <mascha@ma-scha.de>
* debian/control o add newer standard version * src/ImageThought.py o fix exception by only replace whole text if a parent node exist git-svn-id: http://labyrinth.googlecode.com/svn/trunk@200 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index ae20b89..b773006 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -827,8 +827,9 @@ class TextThought (BaseThought.BaseThought):
self.element.removeChild (next)
next.unlink ()
next = m
-
- self.text_element.replaceWholeText (self.text)
+
+ if self.text_element.parentNode is not None:
+ self.text_element.replaceWholeText (self.text)
text = self.extended_buffer.get_text ()
if text:
self.extended_buffer.update_save()