Bug 372853

Summary: Fits viewer histogram scale can only change right once
Product: [Applications] kstars Reporter: Hans Lambermont <hans>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hans Lambermont 2016-11-23 20:28:32 UTC
kstars-bleeding 5:16.10+201611202010~ubuntu16.04.1

The histogram scale can be changed from its default 'Linear' setting to 'Logarithmic' and after clicking 'apply' the histogram gets updated. So far so good.
Changing back to 'Linear' and clicking 'apply' however does not work.

Furthermore setting it *again* to 'Logarithmic' and clicking 'apply' gives an even stranger result where the histogram moves right even further. This can be repeated a few times.
Comment 1 Jasem Mutlaq 2016-11-24 06:53:56 UTC
Git commit 1ddab20ae2a27420af3707db25726c7b5a1cf982 by Jasem Mutlaq.
Committed on 24/11/2016 at 06:48.
Pushed by mutlaqja into branch 'master'.

Fix a few rounding issue with multi-byte data.

M  +16   -62   kstars/fitsviewer/fitsdata.cpp
M  +0    -1    kstars/fitsviewer/fitshistogram.cpp

https://commits.kde.org/kstars/1ddab20ae2a27420af3707db25726c7b5a1cf982