From 80b4f14530426d21c7ea26b7976a728f5b36c294 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 15 Feb 2008 11:01:04 +0000 Subject: Added edges to rooms. --- SidebarView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SidebarView.cpp') diff --git a/SidebarView.cpp b/SidebarView.cpp index 1246126..db470be 100644 --- a/SidebarView.cpp +++ b/SidebarView.cpp @@ -166,11 +166,11 @@ void SidebarView::update() { gtk_entry_set_text(GTK_ENTRY(entryName), room->getName().c_str()); gtk_widget_show(entryName); - gchar *string = g_strdup_printf("%.2f", room->area()); + gchar *string = g_strdup_printf("%.2f", room->getPolygon().area()); gtk_label_set_text(GTK_LABEL(labelArea), string); g_free(string); - string = g_strdup_printf("%.2f", room->perimeter()); + string = g_strdup_printf("%.2f", room->getPolygon().perimeter()); gtk_label_set_text(GTK_LABEL(labelPerimeter), string); g_free(string); -- cgit v1.2.3