wkjarosz / hdrview

A simple research-oriented image viewer with an emphasis on examining and comparing high-dynamic range (HDR) images, and including minimalistic editing and tonemapping capabilities.
Other
291 stars 11 forks source link

Bug in painting undo #114

Open wkjarosz opened 1 year ago

wkjarosz commented 1 year ago

How to reproduce:

  1. Click on the interface somewhere, like just above a menu bar button
  2. drag mouse over image view
  3. upon releasing mouse a brush stroke is painted from the previously registered mouse position to the mouse release position
  4. history is not updated, so cannot be undo

I suspect the undo state is updated on mouse down on imageview (but it doesn't happen here since the mouse down is on a different UI element). the mouse up still paints onto the image, even though an active painting start command wasn't registered.