Stop far right XTicker flowing into graph margin

This commit is contained in:
Mark Watkins 2011-09-13 13:44:42 +10:00
parent add1a51db6
commit 2749998f93
2 changed files with 3 additions and 2 deletions

View File

@ -379,7 +379,7 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event)
day=m_days[zd];
x+=gYAxis::Margin+gGraphView::titleWidth; //graph->m_marginleft+
int y=event->y()+rtop-10;
int y=event->y()+rtop-15;
QDateTime dt=QDateTime::fromTime_t(hl_day*86400);

View File

@ -193,7 +193,8 @@ void gXAxis::paint(gGraph & w,int left,int top, int width, int height)
GetTextExtent(tmpstr,x,y); // this only really needs running once :(
if (m_utcfix)
tx+=step_pixels/2.0;
w.renderText(tmpstr,tx,top+18);
if ((tx+x)<(left+width))
w.renderText(tmpstr,tx,top+18);
py=px;
for (int j=1;j<num_minor_ticks;j++) {
py+=step_pixels;