1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 01:21:16 +02:00

Correcting the layout of EQ freq ruler (borders, off-by-ones).

Avoid an unnecessary alert in Envelope.
This commit is contained in:
martynshaw99
2010-03-23 01:27:12 +00:00
parent 69b6d2a0cd
commit 3ee3c168e6
4 changed files with 25 additions and 16 deletions

View File

@@ -1385,7 +1385,7 @@ void Ruler::DrawGrid(wxDC& dc, int length, bool minor, bool major, int xOffset,
gridPos = mMinorLabels[i].pos;
if(mOrientation == wxHORIZONTAL) {
if((gridPos != 0) && (gridPos != mGridLineLength))
mDC->DrawLine(gridPos+xOffset, yOffset, gridPos+xOffset, mGridLineLength);
mDC->DrawLine(gridPos+xOffset, yOffset, gridPos+xOffset, mGridLineLength+yOffset);
}
else {
if((gridPos != 0) && (gridPos != mGridLineLength))