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

--- Comment #7 from Timo Gurr <timo.g...@gmail.com> ---
(In reply to Halla Rempt from comment #6)
> I know... But even so, there isn't much testing we can do, since it doesn't
> happen elsewhere. The only guess I can make is that this patch might help,
> but I cannot test it:
> 
> diff --git a/libs/widgets/KisVisualColorModel.cpp
> b/libs/widgets/KisVisualColorModel.cpp
> index 943eb0a93a..d9d6206031 100644
> --- a/libs/widgets/KisVisualColorModel.cpp
> +++ b/libs/widgets/KisVisualColorModel.cpp
> @@ -78,6 +78,8 @@ void KisVisualColorModel::slotSetColor(const KoColor &c)
>  
>  void KisVisualColorModel::slotSetColorSpace(const KoColorSpace *cs)
>  {
> +    if (!cs) return;
> +
>      if (!m_d->currentCS || *m_d->currentCS != *cs) {
>          const KoColorSpace *csNew = cs;

Thanks for helping to get this resolved. I'm afraid it still segfaults right
away with the patch applied, the kcrash looks basically identical, attaching it
anyways.

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

Reply via email to