Skip to content

Commit

Permalink
FIXED various small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksterker committed Aug 6, 2010
1 parent 2c0bcd9 commit 9c34d4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlgedit/dlg_circle.cc
Expand Up @@ -63,7 +63,7 @@ DlgCircle *DlgCircle::parent (query_type pos, int offset)
DlgCircle *DlgCircle::child (query_type pos, int offset)
{
DlgNode *arrow = next (pos, offset);
if (arrow != NULL) (DlgCircle *) arrow->next (FIRST);
if (arrow != NULL) return (DlgCircle *) arrow->next (FIRST);
else return NULL;
}

Expand Down
3 changes: 3 additions & 0 deletions src/dlgedit/gui_graph.cc
Expand Up @@ -155,6 +155,9 @@ bool GuiGraph::newCircle (DlgPoint &point, node_type type)
return false;
}

// update the program state
GuiDlgedit::window->setMode (NODE_SELECTED);

// node created -> increase serial number for next node
serial++;

Expand Down
8 changes: 8 additions & 0 deletions src/dlgedit/gui_graph_events.cc
Expand Up @@ -147,6 +147,14 @@ gint button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer da
GuiGraph *graph = (GuiGraph *) data;
DlgPoint point ((int) event->x, (int) event->y);

#ifdef __APPLE__
// simulate right click on OSX
if (event->state & GDK_CONTROL_MASK)
{
event->button = 3;
}
#endif

// Left button released
if (event->button == 1)
{
Expand Down

0 comments on commit 9c34d4e

Please sign in to comment.