Fix a multiple template instantiation problem on Windows and OSX
ClosedPublic

Authored by dkazakov on Sep 7 2016, 10:56 AM.

Details

Summary

This patch should fix the crash that happens on some versions of
Windows and OSX. The problem is that the templates are instantated in
different libraries and, therefore, dynamic_cast<> considers them to be
different types of objects

Test Plan

Compile and try to use Brush HUD

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dkazakov updated this revision to Diff 6511.Sep 7 2016, 10:56 AM
dkazakov retitled this revision from to Fix a multiple template instantiation problem on Windows and OSX.
dkazakov updated this object.
dkazakov edited the test plan for this revision. (Show Details)
dkazakov added reviewers: Krita, rempt.
rempt accepted this revision.Sep 7 2016, 12:28 PM
rempt edited edge metadata.

Works! Yay!

This revision is now accepted and ready to land.Sep 7 2016, 12:28 PM
This revision was automatically updated to reflect the committed changes.