Changes between Version 4 and Version 5 of Ticket #7624, comment 6


Ignore:
Timestamp:
2012-04-20T02:52:54+02:00 (14 years ago)
Author:
cmuelle8

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7624, comment 6

    v4 v5  
    2424[[Image(cycleways-mapcss-relative-offset.png)]]
    2525
    26 Negative values seem to be ignored, they do not affect the calculated offset.  How do you recognize them in your parser anyway, I did not have a thorough look yet how differentiation between RelativeFloat and Float is done, but understand that both types may occur as a value.
     26Negative values are ignored, this is because
     27 * a RelativeFloat literal is only recognized if a plus sign is preceding the number
     28 * getWidth() is reused, which discards negative absolute values
     29
     30I think this is desireable - or would you like to see negative offsets work?  After all, it does not seem to make much sense to shift a feature to the left, that was tagged "right" - if done, then probably by error.
     31
     32So actually, it seems to be a good thing that this is prevented by current code..