summaryrefslogtreecommitdiffstats
path: root/SidebarView.cpp
diff options
context:
space:
mode:
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);