[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/plugins/tools/defaulttools
From: Emanuele Tamponi <emanuele () valinor ! it>
Date: 2008-03-24 19:51:51
Message-ID: 1206388311.208010.10714.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 789647 by tamponi:
Display right channel value (red and blue got exchanged)
M +3 -2 kis_tool_colorpicker.cc
--- trunk/koffice/krita/plugins/tools/defaulttools/kis_tool_colorpicker.cc \
#789646:789647 @@ -203,11 +203,12 @@
for (int i = 0; i < channels.count(); ++i) {
QString channelValueText;
+ int pos = channels[i]->pos() / channels[i]->size(); // HACK This doesn't \
work if the channels differ in size
if (m_normaliseValues) {
- channelValueText = \
i18n("%1%").arg(m_pickedColor.colorSpace()->normalisedChannelValueText(m_pickedColor.data(), \
i)); + channelValueText = \
i18n("%1%").arg(m_pickedColor.colorSpace()->normalisedChannelValueText(m_pickedColor.data(), \
pos)); } else {
- channelValueText = \
m_pickedColor.colorSpace()->channelValueText(m_pickedColor.data(), i); + \
channelValueText = m_pickedColor.colorSpace()->channelValueText(m_pickedColor.data(), \
pos); }
QTreeWidgetItem *item = new \
QTreeWidgetItem(m_optionsWidget->listViewChannels);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic