#668 viewSize property set but not used by GUI

For next release

I have some code that sets a size object for viewSize property, from Python. The value gets correctly saved in the tlp file. Reading it again shows correct values. However, when displaying the viewSize property through the GUI or just displaying the graph, Size object is (1, 1, 1), which matches the default value defined in tlp file.

I've been hitting this either with Tulip 3.7 or 3.8 (Ubuntu).


  • LISSY Alexandre

    LISSY Alexandre - 2012-06-27

    Also, I tried changing the .tlp default property value, by changing :
    (property 0 size "viewSize"
    (default "(1,1,1)" "(0.125,0.125,0.5)")


    (property 0 size "viewSize"
    (default "(42,42,42)" "(0.125,0.125,0.5)")

    When opened in the GUI, the viewSize property still has value (1,1,1). And re-opening the file in a text editor shows the 42,42,42 default value.

  • LISSY Alexandre

    LISSY Alexandre - 2012-06-28

    Another fun fact. I did the following change :
    Index: TulipApp.cpp
    --- TulipApp.cpp (révision 7952)
    +++ TulipApp.cpp (copie de travail)
    @@ -337,7 +337,7 @@
    void TulipApp::initializeGraph(Graph *graph) {
    graph->setAttribute("name", newName());
    - graph->getProperty<SizeProperty>("viewSize")->setAllNodeValue(Size(1,1,1));
    + graph->getProperty<SizeProperty>("viewSize")->setAllNodeValue(Size(123,456,789));

    Now, loading the same graph, the correct values are preesnt for viewSize property of my nodes !

  • Patrick Mary

    Patrick Mary - 2014-07-02

    This bug is fixed since Tulip 4.1

  • Patrick Mary

    Patrick Mary - 2014-07-02
    • status: open --> closed-out-of-date

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks