[glom] Print Layouts: Avoid crash when opening.



commit 688daed0dc2cc6a3393cf2a09794f9ec11fe2ae8
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 21 10:44:18 2013 +0200

    Print Layouts: Avoid crash when opening.
    
    * glom/frame_glom.cc: This was another ! error from the commits to
      avoid clang warnings.

 glom/frame_glom.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 088bba6..f0e1fec 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -1805,7 +1805,7 @@ void Frame_Glom::on_box_reports_selected(const Glib::ustring& report_name)
 void Frame_Glom::on_box_print_layouts_selected(const Glib::ustring& print_layout_name)
 {
   //Create the dialog if necessary:
-  if(m_pDialogLayoutPrint)
+  if(!m_pDialogLayoutPrint)
   {
     Utils::get_glade_widget_derived_with_warning(m_pDialogLayoutPrint);
     if(!m_pDialogLayoutPrint)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]