Summary: | Tentative entries not restored upon Game/Load | ||
---|---|---|---|
Product: | [Applications] ksudoku | Reporter: | joost.t.hart |
Component: | general | Assignee: | Ian Wadham <iandw.au> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cyberbeat, kde-games-bugs, richard.bos |
Priority: | NOR | ||
Version: | 0.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.0 (KDE SC 4.8) | |
Sentry Crash Report: | |||
Attachments: | This patch fixes the bug for me |
Description
joost.t.hart
2009-03-26 13:58:08 UTC
*** Bug 211223 has been marked as a duplicate of this bug. *** Created attachment 66632 [details]
This patch fixes the bug for me
Thanks very much for this one-liner, H.H. It works for me too and solves a problem that has been puzzling me for a month or two, since I got the Load action to work again. I will incorporate your fix into KDE 4.8 trunk. I think I see how your patch works. View2DScene::init() is called every time a game starts and a view is created. It sets up cells, but not markers, but that does not matter when a puzzle is generated or entered in, because there are no markers. The Load action is different: the loaded puzzle can have markers. By adding update() to View2DScene::init(), we do the cell changes again, but also the markers this time around. Is that your understanding? SVN commit 1268367 by ianw: BUG: 188162 FIXED IN: KDE SC 4.8 Ensure that markers are displayed after a Load action. M +3 -0 view2d.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1268367 this was a quick and dirty fix by trying and testing and it worked as expected :) maybe there is a better solution. btw in kde-4.7.3 I think the difficulty-slider does not work - I have the feeling, the difficulty is always easy there. But that works in trunk. There must be some redundant code in there somewhere. The fix does some things twice, but only on infrequent occasions, so it does not really matter. Yes. The old generator/solver created mostly easy puzzles in KDE 4.7, so I wrote a new generator/solver for KDE 4.8. I hope you are enjoying the challenge ... *** Bug 296515 has been marked as a duplicate of this bug. *** |