<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>331610</bug_id>
          
          <creation_ts>2014-02-28 11:55:05 +0000</creation_ts>
          <short_desc>canvas sides rulers show wrong pixel values scale depending on document ppi</short_desc>
          <delta_ts>2014-07-24 15:41:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Usability</component>
          <version>2.8 Beta</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>animtim</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>dimula73</cc>
    
    <cc>halla</cc>
          
          <cf_commitlink>http://commits.kde.org/calligra/2d51b3df64dfe1c8af5a39f94b8b638379dca7d8</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1433137</commentid>
    <comment_count>0</comment_count>
    <who name="">animtim</who>
    <bug_when>2014-02-28 11:55:05 +0000</bug_when>
    <thetext>The canvas rulers (from menu View-&gt;show rulers) show proper document pixel values only if the document is set to 72ppi.  With other ppi values, the displayed numbers on the rulers are wrong.
(Ex: with a file of 4800px width at 72ppi, the ruler shows width values up to 4800, while with same pixel size but at 600ppi, the ruler shows width values only up to ~576 .. )

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1435083</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2014-03-11 10:09:36 +0000</bug_when>
    <thetext>The rulers are measured in &apos;pt&apos; values. One can switch it into other values, but &apos;px&apos; is not available. And it doesn&apos;t work when enabled in a hardcoded way. So it is confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1435109</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2014-03-11 11:28:16 +0000</bug_when>
    <thetext>Git commit 099ba48a183dcc0546fa0d8c42a7d94eb94029a5 by Dmitry Kazakov.
Committed on 11/03/2014 at 11:19.
Pushed by dkazakov into branch &apos;master&apos;.

Make Krita show rulers in Pixel unit (now activated by default)

You can always switch to other units by right-clicking on the ruler

M  +13   -6    krita/ui/kis_zoom_manager.cc
M  +2    -0    krita/ui/kis_zoom_manager.h
M  +2    -2    libs/main/KoView.cpp
M  +1    -1    libs/main/KoView.h
M  +7    -5    libs/main/KoView_p.h

http://commits.kde.org/calligra/099ba48a183dcc0546fa0d8c42a7d94eb94029a5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1435114</commentid>
    <comment_count>3</comment_count>
    <who name="">animtim</who>
    <bug_when>2014-03-11 11:48:23 +0000</bug_when>
    <thetext>Thanks, the fix is almost working, only problem is it doesn&apos;t initialize right.
That is after creating a document, pixel unit is selected but it still shows wrong value like before, only if I switch to another unit then back to pixel it shows right values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459016</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Langkamp">sven.langkamp</who>
    <bug_when>2014-07-02 16:51:16 +0000</bug_when>
    <thetext>Git commit 151af71e455f2f79e1a276df460ef04224e2ab5f by Sven Langkamp.
Committed on 02/07/2014 at 16:50.
Pushed by langkamp into branch &apos;master&apos;.

initalize rulers with correct unit

M  +3    -0    krita/ui/kis_zoom_manager.cc

http://commits.kde.org/calligra/151af71e455f2f79e1a276df460ef04224e2ab5f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462728</commentid>
    <comment_count>5</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2014-07-24 15:41:53 +0000</bug_when>
    <thetext>Git commit 2d51b3df64dfe1c8af5a39f94b8b638379dca7d8 by Boudewijn Rempt, on behalf of Sven Langkamp.
Committed on 02/07/2014 at 16:50.
Pushed by rempt into branch &apos;calligra/2.8&apos;.

initalize rulers with correct unit

M  +3    -0    krita/ui/kis_zoom_manager.cc

http://commits.kde.org/calligra/2d51b3df64dfe1c8af5a39f94b8b638379dca7d8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>