Bug: If you add a large alias to a table (bigger than table) with joins and
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 16 Mar 2009 14:18:14 +0000 (14:18 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 16 Mar 2009 14:18:14 +0000 (14:18 +0000)
locate at left position in the relationship of joins, then the table is resize
but the position of joins anchors aren't recalculate, leaving the joins anchors
misplaced (ex: inside the table in the middle ). [Luis Ochoa]

git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7710 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/gqb/gqbView.cpp

index 3b1ccfb78f33d034ee98287fdb1cbe5b1b7f1531..18bb015074b2572d1865334084c5f2a84ee4b396 100644 (file)
@@ -250,6 +250,11 @@ void gqbView::onDoubleClick(wxMouseEvent& event)
             {\r
                 t->setAlias(dialog.GetValue());\r
                 joinsPanel->Refresh();\r
+\r
+                // hack to avoid misplaced joins anchors after insert an alias that trigger a table graph resize (bigger)\r
+                this->Refresh();\r
+                this->Update(); //force refresh\r
+                graphBehavior->UpdatePosObject(t,t->position.x,t->position.y,0);\r
             }\r
         }\r
         else if(anySelected->getType()==GQB_JOIN)\r