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

Bug2256: complete the fix, see 17ed489

This commit is contained in:
Paul Licameli 2019-12-30 19:47:44 -05:00
parent 50224b3a0c
commit b747e88304

View File

@ -248,7 +248,9 @@ public:
const auto &placement = mAdjuster.mOrigPlacements[ index ]; const auto &placement = mAdjuster.mOrigPlacements[ index ];
auto fraction = std::max( 0.f, placement.fraction ); auto fraction = std::max( 0.f, placement.fraction );
wxCoord coord = ( (partial + fraction ) / total ) * mViewHeight; 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; lastCoord = coord;
partial += fraction; partial += fraction;
} }