From 91e40f1ecb2fc7dd55bde29cb43604e5272d6336 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 22 Feb 2019 22:36:44 +0100 Subject: [PATCH] remove bug 388: enable plot unit W for plotting @q1[p] --- src/frontend/outitf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 5f754c627..2d9858be9 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -905,7 +905,7 @@ guess_type(const char *name) type = SV_TEMP; else if (cieq(name, "res-sweep")) type = SV_RES; - else if ((*name == '@') && substring("[g", name)) + else if ((*name == '@') && substring("[g", name)) /* token starting with [g */ type = SV_ADMITTANCE; else if ((*name == '@') && substring("[c", name)) type = SV_CAPACITANCE; @@ -913,6 +913,8 @@ guess_type(const char *name) type = SV_CURRENT; else if ((*name == '@') && substring("[q", name)) type = SV_CHARGE; + else if ((*name == '@') && substring("[p]", name)) /* token is exactly [p] */ + type = SV_POWER; else type = SV_VOLTAGE;