From bba9b9986d95b1434edcddc0bccf78beaaa51606 Mon Sep 17 00:00:00 2001
From: Paul Licameli <paul.licameli@audacityteam.org>
Date: Wed, 19 Jul 2017 11:28:14 -0400
Subject: [PATCH] NoteTrack, extreme vertical zoom-in: limit top & bottom
 margin height

---
 src/NoteTrack.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/NoteTrack.h b/src/NoteTrack.h
index 1f2244d4b..1ed65898e 100644
--- a/src/NoteTrack.h
+++ b/src/NoteTrack.h
@@ -134,7 +134,7 @@ class AUDACITY_DLL_API NoteTrack final
    void Zoom(const wxRect &rect, int y, int amount, bool center);
    void ZoomTo(const wxRect &rect, int start, int end);
    int GetNoteMargin(int height) const
-   { return std::min(height / 3, (mPitchHeight + 1) / 2); }
+   { return std::min(height / 4, (mPitchHeight + 1) / 2); }
    int GetOctaveHeight() const { return mPitchHeight * 12 + 2; }
    // call this once before a series of calls to IPitchToY(). It
    // sets mBottom to offset of octave 0 so that mBottomNote