Fossil SCM

New pikchr.c that fixes the top and bottom margin that was lost in the previous check-in.

drh 2020-10-10 20:33 trunk
Commit 0ec09ea894906b6fbb8146cc5924e764169c4126ad796d30b9d00231cd6cbd16
1 file changed +1 -1
+1 -1
--- src/pikchr.c
+++ src/pikchr.c
@@ -6043,11 +6043,11 @@
60436043
w = (eWhich & 1)!=0 ? (bbox.ne.x - bbox.sw.x) + p->charWidth : 0;
60446044
if( eWhich & 2 ){
60456045
PNum h1, h2;
60466046
h1 = (bbox.ne.y - pObj->ptAt.y);
60476047
h2 = (pObj->ptAt.y - bbox.sw.y);
6048
- h = 2.0*( h1<h2 ? h2 : h1 );
6048
+ h = 2.0*( h1<h2 ? h2 : h1 ) + 0.5*p->charHeight;
60496049
}else{
60506050
h = 0;
60516051
}
60526052
pObj->type->xFit(p, pObj, w, h);
60536053
pObj->mProp |= A_FIT;
60546054
--- src/pikchr.c
+++ src/pikchr.c
@@ -6043,11 +6043,11 @@
6043 w = (eWhich & 1)!=0 ? (bbox.ne.x - bbox.sw.x) + p->charWidth : 0;
6044 if( eWhich & 2 ){
6045 PNum h1, h2;
6046 h1 = (bbox.ne.y - pObj->ptAt.y);
6047 h2 = (pObj->ptAt.y - bbox.sw.y);
6048 h = 2.0*( h1<h2 ? h2 : h1 );
6049 }else{
6050 h = 0;
6051 }
6052 pObj->type->xFit(p, pObj, w, h);
6053 pObj->mProp |= A_FIT;
6054
--- src/pikchr.c
+++ src/pikchr.c
@@ -6043,11 +6043,11 @@
6043 w = (eWhich & 1)!=0 ? (bbox.ne.x - bbox.sw.x) + p->charWidth : 0;
6044 if( eWhich & 2 ){
6045 PNum h1, h2;
6046 h1 = (bbox.ne.y - pObj->ptAt.y);
6047 h2 = (pObj->ptAt.y - bbox.sw.y);
6048 h = 2.0*( h1<h2 ? h2 : h1 ) + 0.5*p->charHeight;
6049 }else{
6050 h = 0;
6051 }
6052 pObj->type->xFit(p, pObj, w, h);
6053 pObj->mProp |= A_FIT;
6054

Keyboard Shortcuts

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