ahrm / UnstableFusion

A Stable Diffusion desktop frontend with inpainting, img2img and more!
GNU General Public License v3.0
1.25k stars 86 forks source link

Crash when clicking blank canvas #20

Closed codefaux closed 1 year ago

codefaux commented 1 year ago

Just as listed - start the app, click the blank window anywhere. App freezes, app explodes. Implodes? Anyway, lol

Current commit is b7ae99059f984050061773602f7db328540ffd50 (If I did that right)


  File "C:\Code\git\UnstableFusion\unstablefusion.py", line 633, in mousePressEvent
    pos = self.window_to_image_point(e.pos())
  File "C:\Code\git\UnstableFusion\unstablefusion.py", line 660, in window_to_image_point
    return QPoint(new_x, new_y)
TypeError: arguments did not match any overloaded call:
  QPoint(): too many arguments
  QPoint(int, int): argument 1 has unexpected type 'float'
  QPoint(QPoint): argument 1 has unexpected type 'float'```
ahrm commented 1 year ago

Should be fixed now.

codefaux commented 1 year ago

lol what took so long :P

Seriously though, impressive response time, good fix. Can't wait to experiment with it.