From 92449469ad749a78001c216a5ec4424373b58238 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 23 Apr 2011 11:12:03 -0400 Subject: [PATCH] Work around null-dereference bug in some versions of asymptote. See http://sourceforge.net/tracker/?func=detail&aid=3292023&group_id=120000&atid=685683 for details on the bug. --- tex/src/figures/schematic/base_afm.asy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tex/src/figures/schematic/base_afm.asy b/tex/src/figures/schematic/base_afm.asy index e73f127..935a59c 100644 --- a/tex/src/figures/schematic/base_afm.asy +++ b/tex/src/figures/schematic/base_afm.asy @@ -154,7 +154,7 @@ struct Substrate { pair arrow_center = piezo_bot + (0, arrow_length/2 + 2pt); arrow(b=arrow_center + dir*arrow_length/2, dir=-dir, length=this.piezo_height/3, Arrow(size=8pt), - margin=NoMargin); + margin=NoMargin, L=""); } } @@ -239,8 +239,8 @@ void distance(Label L, pair start, pair end) { pair label_size = 1.2 * (max(picL)-min(picL)); real arrow_length = length(end-start)/2 - label_size.y; if (arrow_length > 4pt) { - arrow(b=start, dir=u, length=arrow_length, Arrow(size=4pt)); - arrow(b=end, dir=-u, length=arrow_length, Arrow(size=4pt)); + arrow(b=start, dir=u, length=arrow_length, Arrow(size=4pt), L=""); + arrow(b=end, dir=-u, length=arrow_length, Arrow(size=4pt), L=""); } label(L, center); } -- 2.26.2