diff options
| -rw-r--r-- | CMakeScripts/InstallMSYS2.cmake | 2 | ||||
| -rwxr-xr-x | msys2installdeps.sh | 3 | ||||
| -rw-r--r-- | src/sp-lpe-item.cpp | 8 |
3 files changed, 8 insertions, 5 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake index 495e8e1e6..d3e63c3c9 100644 --- a/CMakeScripts/InstallMSYS2.cmake +++ b/CMakeScripts/InstallMSYS2.cmake @@ -225,7 +225,7 @@ if(WIN32) set(site_packages "lib/python2.7/site-packages")
# Python packages installed via pacman
- set(packages "python2-lxml" "python2-numpy")
+ set(packages "python2-lxml" "python2-numpy" "python2-pillow")
foreach(package ${packages})
list_files_pacman(${package} paths)
install_list(FILES ${paths}
diff --git a/msys2installdeps.sh b/msys2installdeps.sh index 7b339fdd6..fd46e455c 100755 --- a/msys2installdeps.sh +++ b/msys2installdeps.sh @@ -78,7 +78,8 @@ eval pacman -S --needed --noconfirm \ $ARCH-python2 \ $ARCH-python2-pip \ $ARCH-python2-lxml \ -$ARCH-python2-numpy +$ARCH-python2-numpy \ +$ARCH-python2-pillow for arch in $(eval echo $ARCH); do case ${arch} in mingw-w64-i686) diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index be886bdd2..84d318db2 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -555,19 +555,21 @@ void SPLPEItem::removeAllPathEffects(bool keep_paths) return; } } - for (PathEffectList::const_iterator it = path_effect_list->begin(); it != path_effect_list->end(); ++it) - { + + PathEffectList::iterator it = this->path_effect_list->begin(); + + while ( it != this->path_effect_list->end() ) { LivePathEffectObject *lpeobj = (*it)->lpeobject; if (lpeobj) { Inkscape::LivePathEffect::Effect * lpe = lpeobj->get_lpe(); lpe->keep_paths = keep_paths; lpe->doOnRemove(this); } + // unlink and delete all references in the list (*it)->unlink(); delete *it; it = this->path_effect_list->erase(it); } - this->getRepr()->setAttribute("inkscape:path-effect", NULL); if (!keep_paths) { |
