# HG changeset patch # User Santeri Piippo # Date 1398698822 -10800 # Node ID 0379f6fca732b1bf6e33f333ea74770d3fa80cfa # Parent b80ccc2a24e4270a649a962f115b5012c7d912cc - buh diff -r b80ccc2a24e4 -r 0379f6fca732 src/glRenderer.cc --- a/src/glRenderer.cc Mon Apr 28 18:25:15 2014 +0300 +++ b/src/glRenderer.cc Mon Apr 28 18:27:02 2014 +0300 @@ -1284,6 +1284,7 @@ QList indices; // Go through each pixel read and add them to the selection. + // Note: black is background, those indices are skipped. for (qint32 i = 0; i < numpixels; ++i) { qint32 idx = @@ -1300,9 +1301,6 @@ for (qint32 idx : indices) { - if (idx == 0) - continue; // Black is background; skip - LDObject* obj = LDObject::fromID (idx); assert (obj != null);