src/gui/painting/qprintengine_pdf.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   204     Q_D(QPdfEngine);
   204     Q_D(QPdfEngine);
   205 
   205 
   206     QRect sourceRect = sr.toRect();
   206     QRect sourceRect = sr.toRect();
   207     QImage im = sourceRect != image.rect() ? image.copy(sourceRect) : image;
   207     QImage im = sourceRect != image.rect() ? image.copy(sourceRect) : image;
   208     bool bitmap = true;
   208     bool bitmap = true;
   209     const int object = d->addImage(image, &bitmap, im.cacheKey());
   209     const int object = d->addImage(im, &bitmap, im.cacheKey());
   210     if (object < 0)
   210     if (object < 0)
   211         return;
   211         return;
   212 
   212 
   213     *d->currentPage << "q\n/GSa gs\n";
   213     *d->currentPage << "q\n/GSa gs\n";
   214     *d->currentPage
   214     *d->currentPage