From d7c160d3e6738d2463246dcdb2834587d3ac0a79 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 30 Apr 2009 22:50:01 +0000 Subject: [PATCH] Take the one pixel wide border around the chart area into account when computing the axes' frames. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30523 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debuganalyzer/gui/chart/Chart.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/apps/debuganalyzer/gui/chart/Chart.cpp b/src/apps/debuganalyzer/gui/chart/Chart.cpp index 5ac6e699b1..1bf463dcf0 100644 --- a/src/apps/debuganalyzer/gui/chart/Chart.cpp +++ b/src/apps/debuganalyzer/gui/chart/Chart.cpp @@ -300,14 +300,14 @@ printf("Chart::DoLayout(%f, %f)\n", size.width, size.height); fRenderer->SetFrame(fChartFrame.InsetByCopy(1, 1)); printf(" fChartFrame: (%f, %f) - (%f, %f)\n", fChartFrame.left, fChartFrame.top, fChartFrame.right, fChartFrame.bottom); - fLeftAxis.SetFrame(0, fChartFrame.top, fChartFrame.left - 1, - fChartFrame.bottom); - fRightAxis.SetFrame(fChartFrame.right + 1, fChartFrame.top, width - 1, - fChartFrame.bottom); - fTopAxis.SetFrame(fChartFrame.left, 0, fChartFrame.right, + fLeftAxis.SetFrame(0, fChartFrame.top + 1, fChartFrame.left - 1, + fChartFrame.bottom - 1); + fRightAxis.SetFrame(fChartFrame.right + 1, fChartFrame.top + 1, width - 1, + fChartFrame.bottom - 1); + fTopAxis.SetFrame(fChartFrame.left + 1, 0, fChartFrame.right - 1, fChartFrame.top - 1); - fBottomAxis.SetFrame(fChartFrame.left, fChartFrame.bottom + 1, - fChartFrame.right, height - 1); + fBottomAxis.SetFrame(fChartFrame.left + 1, fChartFrame.bottom + 1, + fChartFrame.right - 1, height - 1); }