[dasher] Fix 578d5f151ef0e705f4d52908e30439c20593aa21



commit 0b2c40efcab9aef6966496829e6e63fc711286c7
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Wed Jun 9 18:14:01 2010 +0100

    Fix 578d5f151ef0e705f4d52908e30439c20593aa21

 Src/Gtk2/DasherControl.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/Gtk2/DasherControl.cpp b/Src/Gtk2/DasherControl.cpp
index 96458e5..e743238 100644
--- a/Src/Gtk2/DasherControl.cpp
+++ b/Src/Gtk2/DasherControl.cpp
@@ -286,8 +286,8 @@ int CDasherControl::CanvasConfigureEvent() {
 #if GTK_CHECK_VERSION (2,18,0)
   gtk_widget_get_allocation(m_pCanvas, &a);
 #else
-  a.width  = m_pCanvas->width;
-  a.height = m_pCanvas->height;
+  a.width  = m_pCanvas->allocation.width;
+  a.height = m_pCanvas->allocation.height;
 #endif
 
   if(m_pScreen != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]