OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000120OMNeT++IDE / NED editorpublic2009-12-17 13:522016-03-04 10:40
lowtexx 
rhornig 
normaltweakalways
resolvedfixed 
4.0 
5.0 
0000120: Parameter 2 for bgs in displaystring is ignored
The parameter number 2 of the tag 'bgs' is ignored in the displaystring.

All the following lines do the same.
@display("bgb=6000,4500;bgi=maps/europe,s;bgg=1000,2,grey95;bgs=0.075,m");
@display("bgb=6000,4500;bgi=maps/europe,s;bgg=1000,2,grey95;bgs=0.075,km");
@display("bgb=6000,4500;bgi=maps/europe,s;bgg=1000,2,grey95;bgs=0.075,mm");

Furthermore variables can not be used in the bgs tag.
Example:
@display("bgb=6000,4500;bgi=maps/europe,s;bgg=1000,2,grey95;bgs=$scaling,km");
This does not work.

Reason:
modinsp.cc - line 607
    const char *scaling = parentmodule->hasDisplayString() ? parentmodule->getDisplayString().getTagArg("bgs",0) : "";

This uses only the first parameter and variables are not resolved.
Omnet 4.0 / Gentoo Linux / x86
No tags attached.
Issue History
2009-12-17 13:52lowtexxNew Issue
2010-03-03 16:30andrasNote Added: 0000210
2016-03-04 10:40rhornigNote Added: 0001174
2016-03-04 10:40rhornigStatusnew => resolved
2016-03-04 10:40rhornigFixed in Version => 5.0
2016-03-04 10:40rhornigResolutionopen => fixed
2016-03-04 10:40rhornigAssigned To => rhornig

Notes
(0000210)
andras   
2010-03-03 16:30   
At major ticks, the number and the unit should be displayed. E.g. 100km, 200km, 300km,...
(0001174)
rhornig   
2016-03-04 10:40   
The BGS tag is now controlling the zoom. The second argument is not interpreted by OMNeT++, but it should be handled by the models themselves if the model chooses to read the coordinates from the display string.