[Libreoffice-commits] .: wizards/com
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 11 12:37:30 PDT 2012
wizards/com/sun/star/wizards/text/TextDocument.py | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit c043062913167ef2dece0fc243a90bb86c32868e
Author: Xisco Fauli <anistenis at gmail.com>
Date: Thu Oct 11 21:36:00 2012 +0200
pywizards: This code does nothing but an exception. Delete it
Change-Id: If35b68073210d7da368a96623853c3d68d8425b5
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.py b/wizards/com/sun/star/wizards/text/TextDocument.py
index 2dea2ce..6570aa4 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.py
+++ b/wizards/com/sun/star/wizards/text/TextDocument.py
@@ -139,13 +139,6 @@ class TextDocument(object):
'com.sun.star.beans.PropertyValue')
loadValues[2].Name = "Preview"
loadValues[2].Value = True
- '''set the preview document to non-modified
- mode in order to avoid the 'do u want to save' box'''
- if TextDocument.xTextDocument is not None:
- try:
- TextDocument.xTextDocument.Modified = False
- except PropertyVetoException, e1:
- traceback.print_exc()
TextDocument.xTextDocument = OfficeDocument.load(
self.xFrame, sDefaultTemplate, "_self", loadValues)
More information about the Libreoffice-commits
mailing list