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:
parent
50224b3a0c
commit
b747e88304
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user