D26778: Re-allocate the rawImage buffer if the number of channels has changed.
Hy Murveit
noreply at phabricator.kde.org
Mon Jan 20 07:38:14 GMT 2020
murveit created this revision.
murveit added a reviewer: mutlaqja.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
murveit requested review of this revision.
REVISION SUMMARY
If the number of channels changes during a session (rare, but can happen now that the
simulator can be changed from mono to rgb and back) then the rawImage buffer needs to be
re-allocated.
TEST PLAN
Using the new Indi ccd simulator capability to switch between rgb and mono,
if you do this in one session without this fix, you'll see the fitsviewer
not display the image properly after the change (though it would it you saved configuration
and restarted kstars). With this fix, that bug should go away--e.g. change the
ccd simulator to rgb, capture an image, note the display is reasonable, switch again, should
be reasonable again.
REPOSITORY
R321 KStars
BRANCH
check-channels (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D26778
AFFECTED FILES
kstars/fitsviewer/fitsview.cpp
To: murveit, mutlaqja
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20200120/0b4af391/attachment.html>
More information about the kde-edu
mailing list