https://bugs.kde.org/show_bug.cgi?id=408113

            Bug ID: 408113
           Summary: Document::guidesVisible and guidesLocked code reversed
                    typo
           Product: krita
           Version: 4.1.7
          Platform: Other
                OS: MS Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: dan.mclaugh...@gmail.com
  Target Milestone: ---

SUMMARY
Discovered while Python scripting, Document::guidesVisible and guidesLocked
properties code appears to be switched. 

https://api.kde.org/extragear-api/graphics-apidocs/krita/libs/libkis/html/Document_8cpp_source.html#l00800

  795 bool Document::guidesVisible() const
  796 {
  797     return d->document->guidesConfig().lockGuides();
  798 }
  799 
  800 bool Document::guidesLocked() const
  801 {
  802     return d->document->guidesConfig().showGuides();
  803 }

Using these functions in Python (v4.1.7) verifies they are reversed. You can
see guidesVisible is using the 'lockGuides()' property and vice-versa. 

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to