Code

fix by Albin Sunnanbo for dash offset in text
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 11 Mar 2008 18:15:06 +0000 (18:15 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 11 Mar 2008 18:15:06 +0000 (18:15 +0000)
src/display/nr-arena-glyphs.cpp

index ad108e0a0f520dbc7bbbdf12494c3a94c1e629ea..ca4e781a97ec9d1331989ae2d625fdaf4e3f66da 100644 (file)
@@ -185,6 +185,7 @@ nr_arena_glyphs_update(NRArenaItem *item, NRRectL */*area*/, NRGC *gc, guint /*s
             nstyl.dash_offset = 0;
             nstyl.dashes=NULL;
             if ( glyphs->style->stroke_dash.n_dash > 0 ) {
+                nstyl.dash_offset = glyphs->style->stroke_dash.offset * scale;
                 nstyl.nbDash=glyphs->style->stroke_dash.n_dash;
                 nstyl.dashes=(double*)malloc(nstyl.nbDash*sizeof(double));
                 for (int i = 0; i < nstyl.nbDash; i++) nstyl.dashes[i]= glyphs->style->stroke_dash.dash[i] * scale;