Bug 525947 - Wrong node size when updating the style in the VSM to a Workspace Image style
Summary: Wrong node size when updating the style in the VSM to a Workspace Image style
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.1.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-10-12 12:29 EDT by Laurent Redor CLA
Modified: 2017-10-18 03:58 EDT (History)
1 user (show)

See Also:


Attachments
ImageSizePb.zip (8.58 KB, application/x-zip-compressed)
2017-10-12 12:29 EDT, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2017-10-12 12:29:54 EDT
Created attachment 270959 [details]
ImageSizePb.zip

This problem has been noticed in Sirius 5.1.0 (but at least until Sirius 4.1.0)

Steps to reproduce:

* Import project ImageSizePb (from ImageSizePb.zip)
* Open diagram newDiag
* --> OK:The size of the node is 40x40 as described in VSM Square style (Size Computation Expression=4)
* Open the VSM editor
* Replace the Square style by a Workspace Image style
* Set the Image Path to /ImageSizePb/man255x255.svg
* Set the Size Computation Expression to 8
* Save
* Go to the newDiag editor
* --> KO: the size of the node is 255x255 (size of the image) and not 80x80 as described in VSM
* Create a new diagram newDiag2
* --> OK: The size of the node is 80x80 as described in VSM Workspace Image style (Size Computation Expression=8)
* Save
* Open the VSM editor
* Reset the change to retreive the Square style with a Size Computation Expression=4
* Save
* Go to the newDiag editor
* --> OK:The size of the node is 40x40 as described in VSM Square style (Size Computation Expression=4)
* Save
* Open the VSM editor
* Replace the Square style by a Workspace Image style
* Set the Image Path to /ImageSizePb/man50x50.png
* Set the Size Computation Expression to 8
* Save
* Go to the newDiag editor
* --> KO: the size of the node is 50x50 (size of the image) and not 80x80 as described in VSM


This problem is maybe related to bug 508050 and/or 494181.