[SOLVED] CXTPImageManager - Vector Icons |
Post Reply |
Author | |
sbre
Groupie Joined: 10 January 2020 Status: Offline Points: 12 |
Post Options
Thanks(1)
Posted: 04 March 2020 at 9:37am |
Hi,
I am using CXTPImageManager with VectorIcons, now I want to add all of my (vector) icons from one CXTPImageManager to another therefore I use: CXTPImageManager myManager; // add Vector icons to myManager CXTPImageManager otherManager; otherManager.AddIcons(&myManager); Here an assert, that the type of the copy-destination icon (= RasterIcon) and the copy-source icon (=VectorIcon) do not match, gets triggered and therefore none of my vector icons get copied to otherManager. Could you please fix this or does anyone know another way how to copy (vector-)icons from one CXTPImageManager to another? Thanks in advance. :) Best regards, Sandra
|
|
dbrookes
Groupie Joined: 30 August 2019 Location: Australia Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Can confirm this issue in v19.1 release. It looks like the constructor for CXTPImageManagerIcon with width and height arguments uses type RasterIcon by default. The copy doesn't do anything since the icon types mismatch. It should be possible to work around it by manually populating the new image manager, but that's not nice.
|
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 289 |
Post Options
Thanks(0)
|
Hello, I'm glad to inform you that the issue has been addressed and fixed. The fix will be available in the next beta or final release. Regards, Artem Gontarenko
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |