Refreshing shape/frame cache after image replace

formatting
This commit is contained in:
Jindra Petk
2013-07-07 08:39:25 +02:00
parent 77628bf739
commit 3b0754021e
12 changed files with 30 additions and 20 deletions

View File

@@ -278,7 +278,7 @@ public class ActionGraph extends Graph {
});*/
//GraphPart breakPart = breakParts.isEmpty() ? null : breakParts.get(0);
List<GraphPart> mcp=new ArrayList<>();
List<GraphPart> mcp = new ArrayList<>();
mcp.addAll(caseBodyParts);
mcp.add(defaultPart2);
GraphPart breakPart = getMostCommonPart(mcp, loops);
@@ -329,12 +329,12 @@ public class ActionGraph extends Graph {
stopPart2x.add(next);
defaultCommands = printGraph(new ArrayList<GraphPart>(), localData, stack, allParts, null, defaultPart, stopPart2x, loops);
}
if(!defaultCommands.isEmpty()){
if(defaultCommands.get(defaultCommands.size()-1) instanceof BreakItem){
BreakItem bi=(BreakItem)defaultCommands.get(defaultCommands.size()-1);
if(bi.loopId==currentLoop.id){
defaultCommands.remove(defaultCommands.size()-1);
if (!defaultCommands.isEmpty()) {
if (defaultCommands.get(defaultCommands.size() - 1) instanceof BreakItem) {
BreakItem bi = (BreakItem) defaultCommands.get(defaultCommands.size() - 1);
if (bi.loopId == currentLoop.id) {
defaultCommands.remove(defaultCommands.size() - 1);
}
}
}