summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/cairo-render-context.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-07-06 19:50:57 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-07-10 18:15:54 +0000
commit2185fad3b6170529ad07aaa0d05874e4c80befa8 (patch)
tree696a302b3602aaf5ba70af09ef16623c005be6c5 /src/extension/internal/cairo-render-context.cpp
parentEnhancements for --export-type command line option (diff)
downloadinkscape-2185fad3b6170529ad07aaa0d05874e4c80befa8.tar.gz
inkscape-2185fad3b6170529ad07aaa0d05874e4c80befa8.zip
cairo-renderer: / cairo-render-context: whitespace fixes
Diffstat (limited to 'src/extension/internal/cairo-render-context.cpp')
-rw-r--r--src/extension/internal/cairo-render-context.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index c801821c8..ab9f9e82f 100644
--- a/src/extension/internal/cairo-render-context.cpp
+++ b/src/extension/internal/cairo-render-context.cpp
@@ -196,7 +196,7 @@ void CairoRenderContext::setStateForStyle(SPStyle const *style)
* \param width width of the surface to be created
* \param height height of the surface to be created
*/
-CairoRenderContext*
+CairoRenderContext*
CairoRenderContext::cloneMe(double width, double height) const
{
g_assert( _is_valid );
@@ -948,7 +948,7 @@ CairoRenderContext::finish(bool finish_surface)
cairo_destroy(_cr);
_cr = nullptr;
-
+
if (finish_surface)
cairo_surface_finish(_surface);
status = cairo_surface_status(_surface);
@@ -1509,7 +1509,7 @@ CairoRenderContext::_prepareRenderGraphic()
// and apply clipping / masking to layers on the way (this is done in popLayer)
// - then emit the page using cairo_show_page()
// - finally restore the previous state with proper transforms and appropriate layers again
- //
+ //
// TODO: While this appears to be an ugly hack it seems to work
// Somebody with a more intimate understanding of cairo and the renderer implementation might
// be able to implement this in a cleaner way, though.
@@ -1666,7 +1666,7 @@ bool CairoRenderContext::renderImage(Inkscape::Pixbuf *pb,
cairo_rectangle(_cr, 0, 0, w, h);
cairo_clip(_cr);
}
-
+
// Cairo filter method will be mapped to PS/PDF 'interpolate' true/false).
// See cairo-pdf-surface.c
if (style) {
@@ -1742,7 +1742,7 @@ unsigned int CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont * /*font*/,
bool
CairoRenderContext::renderGlyphtext(PangoFont *font, Geom::Affine const &font_matrix,
std::vector<CairoGlyphInfo> const &glyphtext, SPStyle const *style)
-{
+{
_prepareRenderText();
if (_is_omittext)
@@ -1871,7 +1871,7 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, Geom::Affine const &font_ma
_showGlyphs(_cr, font, glyphtext, false);
}
}
-
+
}
cairo_restore(_cr);