[scicos_blocks] Capacitor Inductor Resistor: issue with ยต unit on icons 01/20901/3
Samuel GOUGEON [Wed, 20 Mar 2019 23:31:53 +0000 (00:31 +0100)]
  Reported at http://mailinglists.scilab.org/Capacitor-value-issue-tt4039249.html

Change-Id: I675c3ce7f93914fa0f873be1318dfb3ecc68df46

scilab/modules/scicos_blocks/macros/Electrical/Capacitor.sci
scilab/modules/scicos_blocks/macros/Electrical/Inductor.sci
scilab/modules/scicos_blocks/macros/Electrical/Resistor.sci

index 928bf81..ed36f3d 100644 (file)
@@ -51,7 +51,7 @@ function [x,y,typ]=Capacitor(job,arg1,arg2)
             elseif v>=1e-8 & v<1e-5
                 sv = msprintf("%d\\:n\n",v*1e9)
             elseif v>=1e-5 & v<1e-2
-                sv = msprintf("%d\\:\\mu\n",v*1e6)
+                sv = msprintf("%d\\:\\mu \n",v*1e6)
             elseif v>=1e-2 & v<10
                 sv = msprintf("%d\\:m\n",v*1000)
             elseif v>=10 & v<10000
index 46d4acc..b9a76a5 100644 (file)
@@ -46,7 +46,7 @@ function [x,y,typ]=Inductor(job,arg1,arg2)
             if v>=1e-8 & v<1e-5
                 sv = msprintf("%d\\:n\n",v*1e9)
             elseif v>=1e-5 & v<1e-2
-                sv = msprintf("%d\\:\\mu\n",v*1e6)
+                sv = msprintf("%d\\:\\mu \n",v*1e6)
             elseif v>=1e-2 & v<10
                 sv = msprintf("%d\\:m\n",v*1000)
             elseif v>=10 & v<10000
index 7380d6d..200a5c4 100644 (file)
@@ -45,7 +45,7 @@ function [x,y,typ]=Resistor(job,arg1,arg2)
             // Updating the icon according to the resistance value:
             v = evstr(exprs);
             if v>=1e-5 & v<1e-2
-                sv = msprintf("%d\\:\\mu\n",v*1e6)
+                sv = msprintf("%d\\:\\mu \n",v*1e6)
             elseif v>=1e-2 & v<10
                 sv = msprintf("%d\\:m\n",v*1000)
             elseif v>=10 & v<10000