Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv7236/src

Modified Files:
        TrackArtist.cpp 
Log Message:
Draw bevel around vruler on Time tracks.

Index: TrackArtist.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackArtist.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- TrackArtist.cpp     20 Apr 2009 17:27:22 -0000      1.146
+++ TrackArtist.cpp     20 Apr 2009 18:32:17 -0000      1.147
@@ -279,9 +279,11 @@
 
 void TrackArtist::DrawVRuler(Track *t, wxDC * dc, wxRect & r)
 {
-   // Label tracks do not have a vruler
-   // But give it beveled area
-   if (t->GetKind() == Track::Label) {
+   int kind = t->GetKind();
+
+   // Label and Time tracks do not have a vruler
+   // But give it a beveled area
+   if (kind == Track::Label || kind == Track::Time) {
       wxRect bev = r;
       bev.Inflate(-1, -1);
       bev.width += 1;
@@ -292,7 +294,7 @@
 
    // All waves have a ruler in the info panel
    // The ruler needs a bevelled surround.
-   if (t->GetKind() == Track::Wave) {
+   if (kind == Track::Wave) {
       wxRect bev = r;
       bev.Inflate(-1, -1);
       bev.width += 1;
@@ -321,7 +323,7 @@
 #ifdef USE_MIDI
    // The note track isn't drawing a ruler at all!
    // But it needs to!
-   if (t->GetKind() == Track::Note) {
+   if (kind == Track::Note) {
       UpdateVRuler(t, r);
 
       dc->SetPen(*wxTRANSPARENT_PEN);


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to