Opened 16 years ago
Closed 16 years ago
#2047 closed defect (fixed)
Mappaint fails to draw way if starting node is invisible
Reported by: | xeen | Owned by: | stoecker |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Internal mappaint style | Version: | |
Keywords: | Cc: |
Description
This is probably due to the speed optimizations done lately. I'm using 1291 but my guess is the problem appeared before.
Steps to reproduce:
- Start JOSM, create a data layer any way you like
- Go into Drawing Mode
- Draw a way with at least two nodes
- move the view so that both nodes are not visible anymore
- Adding another node will make the way disappear until the map is moved or zoomed again
This should be fixed before the next stable version is released.
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Owner: | changed from | to
---|
We need to invalidate caching of all currently drawn elements. Usually new elemnts are copied from the old ones (and stripped from caching information), but in this case the old one is modfied and thus the visibility caching is wrong, as well as the style handling would be.
I will have a look.
Hmmm, my feeling is that it's related to Dirks visibility improvements. My improvements hesitate to think about the current visible state, but simply caches how to draw stuff.
Dirk, maybe you could have a look?