Fossil SCM

In the pie-chart generator, if there is a wedge pointing straight down, make sure its text label flows off to the right, not the left.

drh 2016-08-24 14:08 trunk
Commit bb9c6a6f29ae81cedfd2f2740359f39676bf2b98
1 file changed +1 -1
+1 -1
--- src/piechart.c
+++ src/piechart.c
@@ -242,11 +242,11 @@
242242
y4 = rLwrLeft;
243243
}
244244
rLwrLeft = y4 + TEXT_HEIGHT;
245245
}
246246
}
247
- if( x4<=cx ){
247
+ if( x4<cx ){
248248
x5 = x4 - 1.0;
249249
zAnc = "end";
250250
}else{
251251
x5 = x4 + 1.0;
252252
zAnc = "start";
253253
--- src/piechart.c
+++ src/piechart.c
@@ -242,11 +242,11 @@
242 y4 = rLwrLeft;
243 }
244 rLwrLeft = y4 + TEXT_HEIGHT;
245 }
246 }
247 if( x4<=cx ){
248 x5 = x4 - 1.0;
249 zAnc = "end";
250 }else{
251 x5 = x4 + 1.0;
252 zAnc = "start";
253
--- src/piechart.c
+++ src/piechart.c
@@ -242,11 +242,11 @@
242 y4 = rLwrLeft;
243 }
244 rLwrLeft = y4 + TEXT_HEIGHT;
245 }
246 }
247 if( x4<cx ){
248 x5 = x4 - 1.0;
249 zAnc = "end";
250 }else{
251 x5 = x4 + 1.0;
252 zAnc = "start";
253

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button