Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31473
Modified Files:
TimeTrack.cpp
Log Message:
Fix drawing of ruler
Index: TimeTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TimeTrack.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- TimeTrack.cpp 12 Mar 2007 09:23:08 -0000 1.17
+++ TimeTrack.cpp 23 May 2007 06:29:50 -0000 1.18
@@ -195,15 +195,13 @@
double min = t0;
double max = min + r.width / pps;
mRuler->SetRange(min, max);
- mRuler->SetFlip( false ); // If we don't do this, the Ruler doesn't redraw
itself when the envelope is modified.
- // I have no idea why!
- mRuler->SetFlip( true );
+ mRuler->SetFlip(false); // If we don't do this, the Ruler doesn't redraw
itself when the envelope is modified.
+ // I have no idea why!
+ //
+ // LL: It's because the ruler only Invalidate()s
when the new value is different
+ // than the current value.
+ mRuler->SetFlip(GetHeight() > 75 ? true : true);
mRuler->Draw(dc, GetEnvelope(), GetRangeLower(), GetRangeUpper());
- if( GetHeight() > 75 )
- {
- mRuler->SetFlip( false );
- mRuler->Draw(dc, GetEnvelope(), GetRangeLower(), GetRangeUpper());
- }
int *heights = new int[mid.width];
double *envValues = new double[mid.width];
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs