summaryrefslogtreecommitdiffstats
path: root/SidebarView.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-15 12:01:04 +0100
committerneoraider <devnull@localhost>2008-02-15 12:01:04 +0100
commit80b4f14530426d21c7ea26b7976a728f5b36c294 (patch)
treea3d54b26f072f1204c7a1146bd1dc96a8a3850d3 /SidebarView.cpp
parentc4aadd98230f3b9ab50398b715164ff874ea8a61 (diff)
downloadzoomedit-80b4f14530426d21c7ea26b7976a728f5b36c294.tar
zoomedit-80b4f14530426d21c7ea26b7976a728f5b36c294.zip
Added edges to rooms.
Diffstat (limited to 'SidebarView.cpp')
-rw-r--r--SidebarView.cpp4
1 files changed, 2 insertions, 2 deletions
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);