mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Bug2256: complete the fix, see 17ed489
This commit is contained in:
@@ -248,7 +248,9 @@ public:
|
||||
const auto &placement = mAdjuster.mOrigPlacements[ index ];
|
||||
auto fraction = std::max( 0.f, placement.fraction );
|
||||
wxCoord coord = ( (partial + fraction ) / total ) * mViewHeight;
|
||||
mOrigHeights.emplace_back( coord - lastCoord );
|
||||
auto height = coord - lastCoord;
|
||||
mOrigHeights.emplace_back( height );
|
||||
mAdjuster.mNewPlacements[ index ].fraction = height;
|
||||
lastCoord = coord;
|
||||
partial += fraction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user