SVN Commit by andreas: r4834 - branches/REL-1_4_0_PATCHES/pgadmin3/src/schema - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by andreas: r4834 - branches/REL-1_4_0_PATCHES/pgadmin3/src/schema
Date
Msg-id 200512112200.jBBM0rND004237@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
Author: andreas
Date: 2005-12-11 22:00:51 +0000 (Sun, 11 Dec 2005)
New Revision: 4834

Modified:
   branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgObject.cpp
Log:
wxASSERT fix

Modified: branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgObject.cpp
===================================================================
--- branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgObject.cpp    2005-12-11 21:58:25 UTC (rev 4833)
+++ branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgObject.cpp    2005-12-11 22:00:51 UTC (rev 4834)
@@ -162,7 +162,7 @@
 bool pgObject::UpdateIcon(ctlTree *browser)
 {
     int icon=GetIconId();
-    if (browser->GetItemImage(GetId(), wxTreeItemIcon_Normal) != icon)
+    if (GetId() && browser->GetItemImage(GetId(), wxTreeItemIcon_Normal) != icon)
     {
         browser->SetItemImage(GetId(), GetIconId(), wxTreeItemIcon_Normal);
         browser->SetItemImage(GetId(), GetIconId(), wxTreeItemIcon_Selected);


pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4833 - in trunk/pgadmin3: . src/frm src/include/ctl src/slony src/slony/include
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4835 - trunk/pgadmin3/src/schema