Fit Ticks debug update

This commit is contained in:
Mark Watkins 2011-08-07 12:33:11 +10:00
parent 234b159a6e
commit 75b7970041
4 changed files with 4 additions and 4 deletions

View File

@ -364,7 +364,7 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry)
time=start+tim[i]; time=start+tim[i];
if (first) { if (first) {
if (num_points>5 && (time < minx)) continue; // Skip stuff before the start of our data window if (num_points>15 && (time < minx)) continue; // Skip stuff before the start of our data window
first=false; first=false;
if (i>=sam) i-=sam; // Start with the previous sample (which will be in clipping area) if (i>=sam) i-=sam; // Start with the previous sample (which will be in clipping area)
time=start+tim[i]; time=start+tim[i];

View File

@ -106,7 +106,7 @@ void gXAxis::Plot(gGraphWindow & w,float scrx,float scry)
} }
} }
if (fit_ticks==0) { if (fit_ticks==0) {
qDebug() << "gXAxis::Plot() Short days and zooming in too much screws this up."; qDebug() << "gXAxis::Plot() Couldn't fit ticks.. Too short?" << minx << maxx << xx;
return; return;
} }
if ((div<0) || (div>divcnt)) { if ((div<0) || (div>divcnt)) {

View File

@ -121,7 +121,7 @@ void DrawTextQueue(gGraphWindow & wid)
if (wid.parentWidget()!=0) { if (wid.parentWidget()!=0) {
QPainter painter(&wid); QPainter painter(&wid);
painter.setRenderHint(QPainter::HighQualityAntialiasing,true);
// TODO.. Prerotate the 90degree stuff here and keep the matrix for all of these.. // TODO.. Prerotate the 90degree stuff here and keep the matrix for all of these..
for (int i=0;i<TextQueRot.size();i++) { for (int i=0;i<TextQueRot.size();i++) {
TextBuffer & t=TextQueRot[i]; TextBuffer & t=TextQueRot[i];

View File

@ -20,7 +20,7 @@ License: GPL
//******************************************************************************************** //********************************************************************************************
// Please INCREMENT the following value when making changes to this loaders implementation. // Please INCREMENT the following value when making changes to this loaders implementation.
// //
const int resmed_data_version=1; const int resmed_data_version=2;
// //
//******************************************************************************************** //********************************************************************************************