[Libreoffice-commits] core.git: vcl/unx

Korrawit Pruegsanusak detective.conan.1412 at gmail.com
Fri Apr 8 10:18:15 UTC 2016


 vcl/unx/generic/gdi/openglx11cairotextrender.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit f9ddd6e317a7bfd662516d197c3caea976aef3b3
Author: Korrawit Pruegsanusak <detective.conan.1412 at gmail.com>
Date:   Wed Mar 23 13:26:05 2016 +0700

    Change #include <cairo-svg.h> to <cairo.h>
    
    Since we don't need cairo's svg feature, and we build internal cairo
    with --disable-svg. Also remove commented-out codes which use svg.
    
    Change-Id: I5a8e8c672588bb6eca28696f21221770972ec3d3
    Reviewed-on: https://gerrit.libreoffice.org/23456
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/unx/generic/gdi/openglx11cairotextrender.cxx b/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
index 0c8ac0d..2710b6a 100644
--- a/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
@@ -13,7 +13,7 @@
 #include "salbmp.hxx"
 #include <vcl/salbtype.hxx>
 
-#include <cairo-svg.h>
+#include <cairo.h>
 
 OpenGLX11CairoTextRender::OpenGLX11CairoTextRender(X11SalGraphics& rParent)
     : X11CairoTextRender(rParent)
@@ -22,9 +22,6 @@ OpenGLX11CairoTextRender::OpenGLX11CairoTextRender(X11SalGraphics& rParent)
 
 cairo_t* OpenGLX11CairoTextRender::getCairoContext()
 {
-    // static size_t id = 0;
-    // OString aFileName = OString("/tmp/libo_logs/text_rendering") + OString::number(id++) + OString(".svg");
-    // cairo_surface_t* surface = cairo_svg_surface_create(aFileName.getStr(), GetWidth(), GetHeight());
     cairo_surface_t* surface = nullptr;
     OpenGLSalGraphicsImpl *pImpl = dynamic_cast< OpenGLSalGraphicsImpl* >(mrParent.GetImpl());
     if( pImpl )


More information about the Libreoffice-commits mailing list