[gedit-plugins] Copy pango description as we are editing it.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Copy pango description as we are editing it.
- Date: Wed, 9 Mar 2011 21:53:18 +0000 (UTC)
commit 8b665351b6943b3dcad12a20fda08d07875bb8e5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Mar 9 22:53:18 2011 +0100
Copy pango description as we are editing it.
plugins/textsize/textsize/documenthelper.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/textsize/textsize/documenthelper.py b/plugins/textsize/textsize/documenthelper.py
index 10fdba2..7adc9d9 100644
--- a/plugins/textsize/textsize/documenthelper.py
+++ b/plugins/textsize/textsize/documenthelper.py
@@ -94,7 +94,7 @@ class DocumentHelper(Signals):
description.set_size(max(1, (size + amount)) * Pango.SCALE)
self._view.override_font(description)
- self._last_font = description
+ self._last_font = description.copy()
else:
start = bounds[0]
end = bounds[1]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]