Skip to content

Commit 4b349cf

Browse files
committed
[bug] fix line/slit source preview
1 parent 537ce24 commit 4b349cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/mcxpreview.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
if (~isfield(cfg(i), 'srcparam1'))
187187
error('cfg.srcparam1 is missing');
188188
end
189-
hsrcarea = plotmesh([srcpos(1:3); cfg(i).srcparam1(1:3) * voxelsize], [1 2], 'linewidth', 3, 'color', 'r');
189+
hsrcarea = plotmesh([srcpos(1:3); srcpos(1:3) + cfg(i).srcparam1(1:3) * voxelsize], [1 2], 'linewidth', 3, 'color', 'r');
190190
end
191191
end
192192

0 commit comments

Comments
 (0)