summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df40871)
raw | patch | inline | side by side (parent: df40871)
author | joncruz <joncruz@users.sourceforge.net> | |
Mon, 5 Jun 2006 07:47:10 +0000 (07:47 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Mon, 5 Jun 2006 07:47:10 +0000 (07:47 +0000) |
ChangeLog | patch | blob | history | |
src/trace/siox.cpp | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 3ea0356ba78ca6500e10b8258b21b548ea604472..bcf3baae6930a3851ab5214c29ae5abf45b8dfe3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
-2006-06-01 Jon A. Cruz <jon@joncruz.org>
+2006-06-02 Jon A. Cruz <jon@joncruz.org>
+
+ * trace/siox.cpp:
+
+ Applied patch #1500659.
+
+2006-06-02 Jon A. Cruz <jon@joncruz.org>
* src/dialogs/layers-panel.h, src/dialogs/layers-panel.cpp:
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index d460d15579b9c8db4a65a76534b4b77f91f4001a..955446b42219e341cfee0453685b396bc42be74e 100644 (file)
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
// check all four neighbours
int left = pos - 1;
- if (x-1>=0 && labelField[left]==-1 && cm[left]>=threshold)
+ if (((int)x)-1>=0 && labelField[left]==-1 && cm[left]>=threshold)
{
labelField[left]=curLabel;
componentSize++;
}
int top = pos - width;
- if (y-1>=0 && labelField[top]==-1 && cm[top]>=threshold)
+ if (((int)y)-1>=0 && labelField[top]==-1 && cm[top]>=threshold)
{
labelField[top]=curLabel;
componentSize++;
unsigned int y=pos / width;
// check all four neighbours
int left = pos-1;
- if (x-1 >= 0 && labelField[left] == -1
+ if (((int)x)-1 >= 0 && labelField[left] == -1
&& CLAB::diff(image[left], origColor)<1.0)
{
labelField[left]=curLabel;
pixelsToVisit.push_back(right);
}
int top = pos - width;
- if (y-1>=0 && labelField[top]==-1
+ if (((int)y)-1>=0 && labelField[top]==-1
&& CLAB::diff(image[top], origColor)<1.0)
{
labelField[top]=curLabel;