CaGe-graph / CaGe

The Chemical and abstract Graph environment
9 stars 2 forks source link

Value of TwoView.ShowNumbers in CaGe.ini is ignored #32

Closed nvcleemp closed 9 years ago

nvcleemp commented 9 years ago

This value can be set to true, but TwoView will still act as if it was set to false.

nvcleemp commented 9 years ago

The problem is not really that this value is ignored. It is correctly initialised in TwoViewModel. The problem is the construction of the GraphicsTwoViewPainter. This tries to set the vertex size to accommodate the labels, but since the Graphics object is not yet set, this fails and it concludes incorrectly that it can't display the numbers