Bug 372853 - Fits viewer histogram scale can only change right once
Summary: Fits viewer histogram scale can only change right once
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 20:28 UTC by Hans Lambermont
Modified: 2016-11-24 06:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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