Skip to content

Commit

Permalink
Version 1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
4lex4 committed Feb 19, 2018
2 parents 76aa95e + ee73c6f commit 442220f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
17 changes: 9 additions & 8 deletions DefaultParamsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ void DefaultParamsDialog::profileChanged(const int index) {
if (index == customProfileItemIdx) {
profileCB->setEditText(profileCB->currentText());
profileCB->lineEdit()->selectAll();
profileCB->setFocus();
profileSaveButton->setEnabled(true);
profileDeleteButton->setEnabled(false);
setTabWidgetsEnabled(true);
Expand Down Expand Up @@ -998,6 +999,7 @@ void DefaultParamsDialog::profileChanged(const int index) {
QMessageBox::critical(this, tr("Error"), tr("Error loading the profile."));
profileCB->setCurrentIndex(0);
profileCB->removeItem(index);
customProfileItemIdx--;

profileSaveButton->setEnabled(false);
profileDeleteButton->setEnabled(false);
Expand Down Expand Up @@ -1037,16 +1039,15 @@ void DefaultParamsDialog::profileSavePressed() {
}

void DefaultParamsDialog::profileDeletePressed() {
const ScopedIncDec<int> scopeGuard(ignoreProfileChanges);

if (profileManager.deleteProfile(profileCB->currentText())) {
const int deletedProfileIndex = profileCB->currentIndex();
profileCB->setCurrentIndex(customProfileItemIdx--);
profileCB->removeItem(deletedProfileIndex);
{
const ScopedIncDec<int> scopeGuard(ignoreProfileChanges);

profileSaveButton->setEnabled(true);
profileDeleteButton->setEnabled(false);
setTabWidgetsEnabled(true);
const int deletedProfileIndex = profileCB->currentIndex();
profileCB->setCurrentIndex(customProfileItemIdx--);
profileCB->removeItem(deletedProfileIndex);
}
profileChanged(customProfileItemIdx);
} else {
QMessageBox::critical(this, tr("Error"), tr("Error deleting the profile."));
}
Expand Down
1 change: 1 addition & 0 deletions Despeckle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "FastQueue.h"
#include "imageproc/BinaryImage.h"
#include "imageproc/ConnectivityMap.h"
#include <unordered_map>
#include <QImage>
#include <QDebug>

Expand Down
1 change: 1 addition & 0 deletions ProjectPages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "PageSequence.h"
#include "RelinkablePath.h"
#include "AbstractRelinker.h"
#include <unordered_map>
#include <boost/foreach.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
Expand Down
2 changes: 2 additions & 0 deletions Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include <QString>
#include "ThumbnailPixmapCache.h"
#include <map>
#include <unordered_map>

class Utils {
public:
Expand Down
8 changes: 4 additions & 4 deletions filters/output/OutputGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ namespace output {
}();

QColor outsideBackgroundColor = BackgroundColorCalculator::calcDominantBackgroundColor(
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.resultingPreCropArea()
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.preCropArea()
);

const bool needNormalizeIllumination
Expand Down Expand Up @@ -867,7 +867,7 @@ namespace output {

if (needNormalizeIllumination && !render_params.normalizeIlluminationColor()) {
outsideBackgroundColor = BackgroundColorCalculator::calcDominantBackgroundColor(
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.resultingPreCropArea()
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.preCropArea()
);

if (inputOrigImage.allGray()) {
Expand Down Expand Up @@ -1133,7 +1133,7 @@ namespace output {
}();

QColor outsideBackgroundColor = BackgroundColorCalculator::calcDominantBackgroundColor(
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.resultingPreCropArea()
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.preCropArea()
);

const bool color_original = !inputOrigImage.allGray();
Expand Down Expand Up @@ -1775,7 +1775,7 @@ namespace output {

if (needNormalizeIllumination && !render_params.normalizeIlluminationColor()) {
outsideBackgroundColor = BackgroundColorCalculator::calcDominantBackgroundColor(
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.resultingPreCropArea()
inputOrigImage.allGray() ? inputGrayImage : inputOrigImage, m_xform.preCropArea()
);

QImage orig_without_illumination;
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef SCANTAILOR_VERSION_H_
#define SCANTAILOR_VERSION_H_

#define VERSION "1.0.10"
#define VERSION "1.0.11"
#define VERSION_QUAD "" // Must be "x.x.x.x" or an empty string.
#define PROJECT_VERSION 2

Expand Down

0 comments on commit 442220f

Please sign in to comment.