From 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 18 Oct 2007 19:18:01 +0000 Subject: zoomedit: edit.c in den EditManager integriert --- SidebarAdd.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'SidebarAdd.cpp') 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); -- cgit v1.2.3