diff options
author | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
commit | 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e (patch) | |
tree | a0b45181788dd17bd580374fd4a3fdc04ae8bd17 /SidebarAdd.cpp | |
parent | b660b965bcb679e53cc89e7b8903190d2d162ff6 (diff) | |
download | zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.tar zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.zip |
zoomedit: edit.c in den EditManager integriert
Diffstat (limited to 'SidebarAdd.cpp')
-rw-r--r-- | SidebarAdd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/SidebarAdd.cpp b/SidebarAdd.cpp index 78509e0..57de3ee 100644 --- a/SidebarAdd.cpp +++ b/SidebarAdd.cpp @@ -1,5 +1,4 @@ #include "SidebarAdd.h" -#include "edit.h" void SidebarAdd::buttonClicked(GtkButton *button, SidebarAdd *sidebar) { @@ -33,10 +32,10 @@ GtkWidget* SidebarAdd::getWidget() { } void SidebarAdd::update() { - if(!getActiveRoom()) + if(!editor->getActiveRoom()) return; - if(getActiveRoom()->size() > 2 && isPolygonOk(getActiveRoom())) + if(editor->getActiveRoom()->size() > 2 && editor->polygonOk(*editor->getActiveRoom())) gtk_widget_set_sensitive(buttonAdd, TRUE); else gtk_widget_set_sensitive(buttonAdd, FALSE); |