Use plain color source instead of gradient in KisPresetLivePreviewView
ClosedPublic

Authored by amedonosova on Feb 25 2019, 11:13 AM.

Details

Summary

KisPresetLivePreviewView cannot display gradient color source: there is
no resource manager for KisResourcesSnapshot, therefore gradient is
nullptr. That crashes Krita, when it tries to render the preview.

This patch solves the issue by falling back to plain color source for
preset preview rendering.

BUG:385521

Diff Detail

Repository
R37 Krita
Branch
amedonosova/bug385521
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8815
Build 8833: arc lint + arc unit
amedonosova created this revision.Feb 25 2019, 11:13 AM
Restricted Application added a reviewer: Krita. · View Herald TranscriptFeb 25 2019, 11:13 AM
Restricted Application added a project: Krita. · View Herald Transcript
amedonosova requested review of this revision.Feb 25 2019, 11:13 AM
rempt accepted this revision.Feb 25 2019, 11:27 AM
This revision is now accepted and ready to land.Feb 25 2019, 11:27 AM
This revision was automatically updated to reflect the committed changes.