Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

bug correction in Cormas Legend

New Message Reply Date view Thread view Subject view Author view

Subject: bug correction in Cormas Legend
From: Nicolas Becu (becu@uni-hohenheim.de)
Date: Thu Mar 03 2005 - 14:37:44 CET

Hello,

 

I found a “bug” in the Cormas legend utility. Currently it doesn’t work when
the symbol used for the legend contains numbers.

 

The following code corrects this:

 

Go to the Legend class (CormasKernel-Tools category). In the
“prepareLegend: aClass pov: aPovName” method (“actions” protocol), replace
the following code

 

cond = true ifTrue: [(subString at: count + 1) isLetter not ifTrue: [cond :=
false]]

 

by this one

 

cond = true ifTrue: [(subString at: count + 1) = $] ifTrue: [cond := false]]

 

 

 

(beware that you can’t use the ] character in your symbol name)

 

Best Regards,

 

Nicolas

 

_______________________________

Nicolas Becu

Farm Management Institute

Uplands Program G1.1

Hohenheim University

Institut für Landwirtschaftliche Betriebslehre (410B)

Universität Hohenheim Schloss-Osthof-Süd

70599 Stuttgart - Germany

 <http://www.theuplandsprogram.net.ms/> www.TheUplandsProgram.net.ms

Tel.: +49 (0)711 459 2544

Fax.: +49 (0)711 459 3709

E-Mail: becu@uni-hohenheim.de

 

New Message Reply Date view Thread view Subject view Author view
 

Back to home