oxyplot / oxyplot-sharpdx

MIT License
16 stars 10 forks source link

Image annotations get cached twice on plot change #7

Closed Dunkhan closed 6 years ago

Dunkhan commented 6 years ago

Steps to reproduce

  1. Create a plot with an image annotation and at least one zoomable axis
  2. Zoom in on the plot
  3. Observe that an error appears

Platform: .NET version:

Expected behaviour

The plot should render without errors when panning and scrolling. It seems that a simple HasKey check would solve the issue in CacherRenderContext at line 731

Actual behaviour

If a plot has an image annotation and the user scrolls or pans the view, the plot throws an error which is displayed on the screen instead of the plot.

cachererror