aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XrmDatabaseHelper.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XrmDatabaseHelper.hh')
-rw-r--r--src/FbTk/XrmDatabaseHelper.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/XrmDatabaseHelper.hh b/src/FbTk/XrmDatabaseHelper.hh
index 6c8acb0..7ad512d 100644
--- a/src/FbTk/XrmDatabaseHelper.hh
+++ b/src/FbTk/XrmDatabaseHelper.hh
@@ -48,6 +48,9 @@ public:
48 48
49 /// assignment operator 49 /// assignment operator
50 XrmDatabaseHelper& operator=(const XrmDatabase& database) { 50 XrmDatabaseHelper& operator=(const XrmDatabase& database) {
51 if (database == m_database) // assignment to self
52 return *this;
53
51 if (m_database!=0) 54 if (m_database!=0)
52 close(); 55 close();
53 m_database = database; 56 m_database = database;