From 4f2fe5c5e3c2c94c39005239bf842a7f80efd7e2 Mon Sep 17 00:00:00 2001
From: Antoine Lorence <antoine.lorence@insa-rennes.fr>
Date: Thu, 13 Nov 2014 14:46:32 +0100
Subject: [PATCH] Fix crash when loi255.loi is loaded

---
 app/Operations/Quantification.h       | 2 ++
 app/Operations/QuantificationWidget.h | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/Operations/Quantification.h b/app/Operations/Quantification.h
index 1947159..2875efc 100644
--- a/app/Operations/Quantification.h
+++ b/app/Operations/Quantification.h
@@ -22,6 +22,8 @@
 
 #include <Image.h>
 
+#define N_MAX_THRESHOLD 256
+
 struct Quantification {
     static Quantification linearQuant(int size);
     static Quantification nonLinearQuant(int size, const imagein::Image *image, unsigned int c);
diff --git a/app/Operations/QuantificationWidget.h b/app/Operations/QuantificationWidget.h
index 8095d89..3dd0342 100644
--- a/app/Operations/QuantificationWidget.h
+++ b/app/Operations/QuantificationWidget.h
@@ -25,7 +25,7 @@
 
 #include <QScrollArea>
 #include "Quantification.h"
-#define N_MAX_THRESHOLD 32
+
 class QuantificationWidget : public QScrollArea
 {
     Q_OBJECT
-- 
GitLab