summaryrefslogtreecommitdiffstats
path: root/src/helper
diff options
context:
space:
mode:
authorDavid Mathog <mathog@caltech.edu>2014-02-08 08:44:12 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-02-08 08:44:12 +0000
commitd4ba8eaa4a621ac60d99a4aad7531d080cece2cd (patch)
treee1cb3d0319806f78837415284b3c22d2c2b5fb9c /src/helper
parentEMF/WMF support: Various changes (see bug #1263242 c35 for details) (diff)
downloadinkscape-d4ba8eaa4a621ac60d99a4aad7531d080cece2cd.tar.gz
inkscape-d4ba8eaa4a621ac60d99a4aad7531d080cece2cd.zip
DrawingContext: change variable names ct to dc (bug #1272073)
Fixed bugs: - https://launchpad.net/bugs/1272073 (bzr r13009)
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/pixbuf-ops.cpp4
-rw-r--r--src/helper/png-write.cpp12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp
index cd4f539ec..1ba6628c5 100644
--- a/src/helper/pixbuf-ops.cpp
+++ b/src/helper/pixbuf-ops.cpp
@@ -140,10 +140,10 @@ Inkscape::Pixbuf *sp_generate_internal_bitmap(SPDocument *doc, gchar const */*fi
cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
if (cairo_surface_status(surface) == CAIRO_STATUS_SUCCESS) {
- Inkscape::DrawingContext ct(surface, Geom::Point(0,0));
+ Inkscape::DrawingContext dc(surface, Geom::Point(0,0));
// render items
- drawing.render(ct, final_bbox, Inkscape::DrawingItem::RENDER_BYPASS_CACHE);
+ drawing.render(dc, final_bbox, Inkscape::DrawingItem::RENDER_BYPASS_CACHE);
inkpb = new Inkscape::Pixbuf(surface);
}
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index a16fe8e12..a7ebe7423 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -335,14 +335,14 @@ sp_export_get_rows(guchar const **rows, void **to_free, int row, int num_rows, v
cairo_surface_t *s = cairo_image_surface_create_for_data(
px, CAIRO_FORMAT_ARGB32, ebp->width, num_rows, stride);
- Inkscape::DrawingContext ct(s, bbox.min());
- ct.setSource(ebp->background);
- ct.setOperator(CAIRO_OPERATOR_SOURCE);
- ct.paint();
- ct.setOperator(CAIRO_OPERATOR_OVER);
+ Inkscape::DrawingContext dc(s, bbox.min());
+ dc.setSource(ebp->background);
+ dc.setOperator(CAIRO_OPERATOR_SOURCE);
+ dc.paint();
+ dc.setOperator(CAIRO_OPERATOR_OVER);
/* Render */
- ebp->drawing->render(ct, bbox);
+ ebp->drawing->render(dc, bbox);
cairo_surface_destroy(s);
*to_free = px;