summaryrefslogtreecommitdiffstats
path: root/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgantt/kgantt/xQGanttBarViewPort_Events.cpp')
-rw-r--r--kgantt/kgantt/xQGanttBarViewPort_Events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
index ffd85d30..52f017e2 100644
--- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
+++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
@@ -245,7 +245,7 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e)
double sys_width = fabs(x2 - x1);
- double mass = (_tqparent->visibleWidth()/ sys_width);
+ double mass = (_parent->visibleWidth()/ sys_width);
zoom(mass, (int) (x1+(x2-x1)/2), (int) (y1+(y2-y1)/2) );