Skip to content

Commit

Permalink
QtApp: Fix b&w value blocking on import
Browse files Browse the repository at this point in the history
  • Loading branch information
masc4ii committed Jul 5, 2018
1 parent 3b4711c commit f4561c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/qt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5618,6 +5618,7 @@ void MainWindow::initRawBlackAndWhite()
ui->horizontalSliderRawBlack->blockSignals( false );
ui->horizontalSliderRawWhite->blockSignals( true );
ui->horizontalSliderRawWhite->setMaximum( ( 2 << ( getMlvBitdepth( m_pMlvObject ) - 1 ) ) - 1 );
ui->horizontalSliderRawWhite->setValue( ( 2 << ( getMlvBitdepth( m_pMlvObject ) - 1 ) ) - 1 ); //set value to max, because otherwise the new black value is blocked by old white value
ui->horizontalSliderRawWhite->blockSignals( false );
ui->horizontalSliderRawBlack->setValue( getMlvOriginalBlackLevel( m_pMlvObject ) );
on_horizontalSliderRawBlack_valueChanged( getMlvOriginalBlackLevel( m_pMlvObject ) );
Expand Down

0 comments on commit f4561c9

Please sign in to comment.