[Kst] extragear/graphics/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Dec 13 00:04:30 CET 2005
SVN commit 488042 by arwalker:
fix indentation. explicitly declare doubles
M +7 -6 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #488041:488042
@@ -2446,11 +2446,11 @@
if (_xReversed) {
p.scale(-1,1);
- p.translate(d2i(-1 * Hx - Lx), 0);
+ p.translate(d2i(-1.0 * Hx - Lx), 0);
}
if (_yReversed) {
p.scale(1,-1);
- p.translate(0, d2i(-1 * Hy - Ly));
+ p.translate(0, d2i(-1.0 * Hy - Ly));
}
// create the context
KstCurveRenderContext context;
@@ -2484,17 +2484,18 @@
}
if (_yReversed) {
p.scale(1,-1);
- p.translate(0, d2i(-1 * Hy - Ly));
+ p.translate(0, d2i(-1.0 * Hy - Ly));
}
if (_xReversed) {
p.scale(-1,1);
- p.translate(d2i(-1 * Hx - Lx), 0);
+ p.translate(d2i(-1.0 * Hx - Lx), 0);
}
+
#ifdef BENCHMARK
bt_label[i_bt] = "Plot Curves";
bt[i_bt++] = benchTime.elapsed();
#endif
-// must plot grid lines before axes
+ // must plot grid lines before axes
plotGridLines(p, tpx.tick, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px,
xtick_len_px, x_px, tpy.tick, ytop_bdr_px, ybot_bdr_px, y_orig_px,
ytick_px, ytick_len_px, y_px);
@@ -2526,7 +2527,7 @@
bt[i_bt++] = benchTime.elapsed();
#endif
-p.flush();
+ p.flush();
#ifdef BENCHMARK
bt_label[i_bt] = "Flush Painter";
More information about the Kst
mailing list