From 02152e3abb8e496d9d610834cb73a83fd837ca48 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 10 Aug 2013 18:37:25 +0000 Subject: [PATCH] give the graphvizdialog's format_str a more-unique name (to help distinguish it from the name displayer's format_str) svn: r22844 --- src/gui/plug/report/_graphvizreportdialog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/plug/report/_graphvizreportdialog.py b/src/gui/plug/report/_graphvizreportdialog.py index f988f3b08..40f4cfb4d 100644 --- a/src/gui/plug/report/_graphvizreportdialog.py +++ b/src/gui/plug/report/_graphvizreportdialog.py @@ -94,7 +94,7 @@ class GraphvizFormatComboBox(gtk.ComboBox): def get_ext(self): return '.%s' % graphdoc.FORMATS[self.get_active()]['ext'] - def get_format_str(self): + def get_oformat_str(self): # the report's output-format type return graphdoc.FORMATS[self.get_active()]["type"] def is_file_output(self): @@ -213,15 +213,15 @@ class GraphvizReportDialog(ReportDialog): fname = spath self.target_fileentry.set_filename(fname) - format_str = obj.get_format_str() - if format_str in ['gvpdf', 'gspdf', 'ps']: + output_format_str = obj.get_oformat_str() + if output_format_str in ['gvpdf', 'gspdf', 'ps']: # Always use 72 DPI for PostScript and PDF files. self.__gvoptions.dpi.set_value(72) self.__gvoptions.dpi.set_available(False) else: self.__gvoptions.dpi.set_available(True) - if format_str in ['gspdf', 'dot']: + if output_format_str in ['gspdf', 'dot']: # Multiple pages only valid for dot and PDF via GhostsScript. self.__gvoptions.h_pages.set_available(True) self.__gvoptions.v_pages.set_available(True)