Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Bug: If you add a large alias to a table (bigger than table) with joi…
Browse files Browse the repository at this point in the history
…ns and

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@7710 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information
dpage committed Mar 16, 2009
1 parent edda67d commit 6d488c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pgadmin/gqb/gqbView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ void gqbView::onDoubleClick(wxMouseEvent& event)
{
t->setAlias(dialog.GetValue());
joinsPanel->Refresh();

// hack to avoid misplaced joins anchors after insert an alias that trigger a table graph resize (bigger)
this->Refresh();
this->Update(); //force refresh
graphBehavior->UpdatePosObject(t,t->position.x,t->position.y,0);
}
}
else if(anySelected->getType()==GQB_JOIN)
Expand Down

0 comments on commit 6d488c3

Please sign in to comment.