From 8e7a3936c790aada8b79a7bc26f05571bad5efde Mon Sep 17 00:00:00 2001
From: simonb <simonb>
Date: Sat, 4 Aug 2007 18:20:38 +0000
Subject: sync with trunk

---
 src/FbTk/XrmDatabaseHelper.hh | 3 +++
 1 file changed, 3 insertions(+)

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:
 
     /// assignment operator
     XrmDatabaseHelper& operator=(const XrmDatabase& database) {
+        if (database == m_database) // assignment to self
+            return *this;
+
         if (m_database!=0)
             close();
         m_database = database; 
-- 
cgit v0.11.2