-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dashPattern of KLineStyle is set to unique values, but should not #18
Comments
This issue is migrated from the old KIELER Pragmatics JIRA issue tracker. See the old discussion on this ticket in KIPRA-1922. |
I think there's a misunderstanding here. |
According to this interpretation, the "3 1 1 1" pattern should recreate the dash-dot pattern, if I'm not mistaken: If the problem is that a pattern cannot contain any number twice, then I would certainly think that's a bug. |
Maybe the attached diagram confused me, as the leftward edge looks like my expectation of the first edges drawing. I remember that I spend quite some time on this while developing and documenting it for my thesis, but it could be that there's some issue in the mean time. |
A break point at Lines 461 to 462 in 120f3ce
|
At that breakpoint the pattern is [3,1] instead of [3,1,1,1], so the model itself has a small bug. |
The ECore model of KRendering defines that every element in the dashPattern List of KLineStyle needs to be unique. That causes custom patterns like '3 1 1 1' to not work as expected (it should create a dash-dot pattern with small spaces inbetween), and just show a '3 1' pattern in every resulting KGraph (it creates just a dash pattern with small spaces inbetween).
The attached image shows the bug: the left is how it is supposed to look (created here with the predefined dash-dot) and the right is how it is rendered currently.
linePatternBug.png
The text was updated successfully, but these errors were encountered: