summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2010-05-26 19:49:32 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2010-05-26 19:49:32 +0000
commit7ae156aea7bf24a78d143b9645b8aa60ceb1cbb5 (patch)
tree57441baa85631392db3a5f00629cd30568540b01 /src
parentUpdate build.xml for devlibs revision 15 (diff)
downloadinkscape-7ae156aea7bf24a78d143b9645b8aa60ceb1cbb5.tar.gz
inkscape-7ae156aea7bf24a78d143b9645b8aa60ceb1cbb5.zip
temporary fix, to stop lpe clone freeze
(bzr r9452)
Diffstat (limited to 'src')
-rw-r--r--src/sp-lpe-item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index cc718f85e..fb5eb8799 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -810,6 +810,7 @@ bool sp_lpe_item_fork_path_effects_if_necessary(SPLPEItem *lpeitem, unsigned int
// so that each object has its own independent copy of the effect.
// Forking messes up the path effect list, so after each fork,
// reload the list and recheck if more forking is required.
+ int maxloops = 20;
do {
forked = false;
PathEffectList effect_list = sp_lpe_item_get_effect_list(lpeitem);
@@ -825,7 +826,7 @@ bool sp_lpe_item_fork_path_effects_if_necessary(SPLPEItem *lpeitem, unsigned int
}
}
}
- } while (forked);
+ } while (forked && (maxloops-- > 1));
}
return forked;