summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNiko Kiirala <niko@kiirala.com>2007-01-04 09:37:32 +0000
committerkiirala <kiirala@users.sourceforge.net>2007-01-04 09:37:32 +0000
commit48926e9121b863a5719723d52e4ffdde89b1a075 (patch)
treef88bb81a150d4db2ac128ef80aed937fff5516fd /src
parentAdded bitmap transformer to fix blur with rotation and non-uniform scaling (diff)
downloadinkscape-48926e9121b863a5719723d52e4ffdde89b1a075.tar.gz
inkscape-48926e9121b863a5719723d52e4ffdde89b1a075.zip
Fixed and disabled extra debugging routines in pixblock scaler and transformer
(bzr r2126)
Diffstat (limited to 'src')
-rw-r--r--src/display/pixblock-scaler.cpp4
-rw-r--r--src/display/pixblock-transform.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/display/pixblock-scaler.cpp b/src/display/pixblock-scaler.cpp
index 3be52c3f3..c5acaace0 100644
--- a/src/display/pixblock-scaler.cpp
+++ b/src/display/pixblock-scaler.cpp
@@ -80,9 +80,9 @@ inline unsigned char samplex(const int a, const int b, const int c, const int d,
*/
inline void _check_index(NRPixBlock const * const pb, int const location, int const line)
{
- if(true) {
+ if(false) {
int max_loc = pb->rs * (pb->area.y1 - pb->area.y0);
- if (location < 0 || (location + 4) >= max_loc)
+ if (location < 0 || (location + 4) > max_loc)
g_warning("Location %d out of bounds (0 ... %d) at line %d", location, max_loc, line);
}
}
diff --git a/src/display/pixblock-transform.cpp b/src/display/pixblock-transform.cpp
index 1a691b5a8..7aa616eb3 100644
--- a/src/display/pixblock-transform.cpp
+++ b/src/display/pixblock-transform.cpp
@@ -31,9 +31,9 @@ struct RGBA {
*/
inline void _check_index(NRPixBlock const * const pb, int const location, int const line)
{
- if(true) {
+ if(false) {
int max_loc = pb->rs * (pb->area.y1 - pb->area.y0);
- if (location < 0 || (location + 4) >= max_loc)
+ if (location < 0 || (location + 4) > max_loc)
g_warning("Location %d out of bounds (0 ... %d) at line %d", location, max_loc, line);
}
}