Skip to content

Commit 8cbe471

Browse files
committed
Simple fix for halign in latex 3d
1 parent bcbf3cf commit 8cbe471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hist/hist3d.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function build3dlatex(obj) {
196196
const painter = new ObjectPainter(null, obj),
197197
handle = painter.createAttText({ attr: obj }),
198198
valign = handle.align % 10,
199-
halign = handle.align - valign,
199+
halign = (handle.align - valign) / 10,
200200
arr3d = createLatexGeometry(painter, obj.fTitle, handle.getSize() || 10, true),
201201
bb = new THREE.Box3().makeEmpty();
202202

0 commit comments

Comments
 (0)