https://bugs.kde.org/show_bug.cgi?id=465512
Bug ID: 465512
Summary: Python search layer causes instant crash
Classification: Applications
Product: krita
Version: 5.1.5
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: critical
Priority: NOR
Component: Scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Searching for a layer name that is not present on the layer stack causes
instant crash
STEPS TO REPRODUCE
1. open a new document
2. run the following code ( code searches for non existent layer )
CODE
"""
from krita import *
node_name = "cenas"
ad = Krita.instance().activeDocument()
node_i = ad.nodeByName( node_name )
ad.setActiveNode( node_i )
"""
OBSERVED RESULT
Krita instant crash
EXPECTED RESULT
no Krita crash with a return of None
SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12.12
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.