summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:53:00 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:53:00 +0200
commitd8e56b177be463551ebb4f90b66aa728d68d2f97 (patch)
tree819fff1a952f1c797a6a419d29ed7186741ef793 /src/Stitch.cxx
parentc79baa853f258ef78a8205b27c1708f347e23340 (diff)
optimize stitch preview
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r--src/Stitch.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index e4f3d60..65a838e 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -116,6 +116,9 @@ Stitch::resample(GipfelWidget::sample_mode_t m,
a_view = view_start + x * step_view;
merged_pixel_set = 0;
for (int i = 0; i < num_pics; i++) {
+ if (merged_pixel_set && !single_images[i])
+ continue;
+
if (gipf[i]->get_pixel(m, a_view, a_nick,
&r, &g, &b) == 0) {