From c8ddf32147fb582850f64e8da87cc3d4a2f4193d Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Thu, 21 Oct 2010 20:31:30 +0000 Subject: Changes made to save the last added text item. (OLPC #5917) Condition added to save the text when added at last in the paint activity so that it does not disappear. Text disappeared when added at last in the paint activity. Co-authored-by: Anubhav Aggarwal, Ishan Bansal --- (limited to 'OficinaActivity.py') diff --git a/OficinaActivity.py b/OficinaActivity.py index 860d3fe..ec8910d 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -169,6 +169,8 @@ class OficinaActivity(activity.Activity): width, height = self.area.get_size_request() logging.debug('writting %s w=%s h=%s' % (file_path, width, height)) + if self.area.text_in_progress: + self.area.d.text(self.area, event=None) self.area.getout() pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, -- cgit v0.9.1