[krita] [Bug 463713] scaleImage modifies hidden guides and ignores passed xRes and yRes

2023-01-04 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=463713

--- Comment #5 from Halla Rempt  ---
It is not a regression: Krita 4.4.8 had the same issue.

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

[krita] [Bug 463713] scaleImage modifies hidden guides and ignores passed xRes and yRes

2023-01-04 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=463713

Halla Rempt  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1
 CC||ha...@valdyas.org

--- Comment #4 from Halla Rempt  ---
I'm not sure what's up, but I can confirm the results.

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

[krita] [Bug 463713] scaleImage modifies hidden guides and ignores passed xRes and yRes

2023-01-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=463713

--- Comment #3 from dstou...@gmail.com ---
Here's something strange:

If I set the guides as visible on the source document before cloning and then
hide them immediately after cloning, then the guides do not get modified when
the clone is scaled.

If I try calling setGuidesVisible(True) on the clone, however, even before
calling scaleImage on the clone, the guides get modified.

It seems like something about the Document::clone() method treats guides
differently depending on whether or not they're visible, and that difference
affects a future scaleImage call?

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

[krita] [Bug 463713] scaleImage modifies hidden guides and ignores passed xRes and yRes

2023-01-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=463713

--- Comment #2 from dstou...@gmail.com ---
Here's a pastebin for the output I'm referring to.. Apparently this bug tracker
really doesn't like numbers or square brackets or something..

https://pastebin.com/NyWkEUSt

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

[krita] [Bug 463713] scaleImage modifies hidden guides and ignores passed xRes and yRes

2023-01-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=463713

--- Comment #1 from dstou...@gmail.com ---
Here's the script I'm referring to, run in Scripter:

doc = Krita.instance().documents()[0]
horGuides = doc.horizontalGuides()
verGuides = doc.verticalGuides()
print(horGuides, verGuides) 

clone = doc.clone()
print(clone.horizontalGuides(), clone.verticalGuides())
print(clone.width(), clone.height(), clone.xRes(), clone.yRes())

clone.scaleImage(1087, 1828, 300, 300, "Hermite")
print(clone.width(), clone.height(), clone.xRes(), clone.yRes())

print(clone.horizontalGuides(), clone.verticalGuides())

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