[glom/glom-1-28] ComboBox_Relationship: Fix a typo in a null check.



commit 10f0bd67fcf9d29e8fceafa59dcd8e6b242cbba6
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Sep 9 18:36:10 2015 +0200

    ComboBox_Relationship: Fix a typo in a null check.

 glom/mode_design/layout/combobox_relationship.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/mode_design/layout/combobox_relationship.cc 
b/glom/mode_design/layout/combobox_relationship.cc
index 08bb24b..19bdf47 100644
--- a/glom/mode_design/layout/combobox_relationship.cc
+++ b/glom/mode_design/layout/combobox_relationship.cc
@@ -231,7 +231,7 @@ void ComboBox_Relationship::on_cell_data_title(const Gtk::TreeModel::const_itera
     {
       //related relationship:
       sharedptr<Relationship> parent_relationship = (*iterParent)[m_model_columns.m_relationship];
-      if(relationship)
+      if(parent_relationship)
         m_renderer_title->set_property("text", item_get_title_or_name(parent_relationship) + "::" + 
item_get_title_or_name(relationship));
     }
     else


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