Commits

ihi  committed cb84c47

CWS-TOOLING: integrate CWS ooo31gsl7_DEV300
2009-03-25 16:03:41 +0100 hdu r270032 : #i100522# workaround for PDF-export problem with 180-rotated text
2009-03-25 13:42:11 +0100 hdu r270022 : #i100406# fix xrender resource leak in polygon drawing

  • Participants
  • Parent commits 52b5e17

Comments (0)

Files changed (2)

File vcl/source/gdi/pdfwriter_impl.cxx

             appendHex( rGlyphs[nPos].m_nMappedGlyphId, aUnkernedLine );
             // check for adjustment
             double fTheoreticalGlyphWidth = rGlyphs[nPos].m_aPos.X() - rGlyphs[nPos-1].m_aPos.X();
+            fTheoreticalGlyphWidth = fabs( fTheoreticalGlyphWidth ); // #i100522# workaround until #i87686# gets fixed
             fTheoreticalGlyphWidth = 1000.0 * fTheoreticalGlyphWidth / fXScale / double(nPixelFontHeight);
             sal_Int32 nAdjustment = rGlyphs[nPos-1].m_nNativeWidth - sal_Int32(fTheoreticalGlyphWidth+0.5);
             if( nAdjustment != 0 )

File vcl/unx/source/gdi/salgdi.cxx

     rRenderPeer.FillRectangle( PictOpSrc, rEntry.m_aPicture, &aRenderColor, 0, 0, 1, 1 );
 
     // notify xrender of target drawable
+    // TODO: cache the matching xrender picture in the X11SalGraphics
     Picture aDst = rRenderPeer.CreatePicture( hDrawable_, pVisualFormat, 0, NULL );
 
     // set clipping
     rRenderPeer.CompositeTrapezoids( PictOpOver,
         rEntry.m_aPicture, aDst, pMaskFormat, 0, 0, &aTrapVector[0], aTrapVector.size() );
 
+    // release xrender-counterpart of target drawable
+    // TODO: use scoped xrender picture
+    rRenderPeer.FreePicture( aDst );
+
     return TRUE;
 }