Commit bcd8aeb4 authored by Piotr Szymanski's avatar Piotr Szymanski

- less debug (man this slew things down)!

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434944
parent 9dd7420b
......@@ -97,24 +97,17 @@ void PagePainter::paintPageOnPainter( QPainter * destPainter, const KPDFPage * p
// append all highlights inside limits to their list
if ( canDrawHighlights )
{
kdDebug(1223) << "Hello there" <<endl;
if ( !bufferedHighlights )
bufferedHighlights = new QValueList< QPair<QColor, NormalizedRect *> >();
/* else
{*/
NormalizedRect* limitRect = new NormalizedRect(nXMin, nYMin, nXMax, nYMax );
kdDebug(1223) << "The limit coords:" << limitRect->left
<< " " << limitRect->top << " " << limitRect->right
<< " " << limitRect->bottom << endl;
QValueList< HighlightAreaRect * >::const_iterator h2It = page->m_highlights.begin(), hEnd = page->m_highlights.end();
QValueList< NormalizedRect * >::const_iterator hIt;
for ( ; h2It != hEnd; ++h2It )
for (hIt=(*h2It)->begin(); hIt!=(*h2It)->end(); ++hIt)
{
kdDebug(1223) << "The coords:" << (*hIt)->left
<< " " << (*hIt)->top << " " << (*hIt)->right
<< " " << (*hIt)->bottom << endl;
if ((*hIt)->intersects(limitRect))
bufferedHighlights->append( qMakePair((*h2It)->color,*hIt) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment