Explorar el Código

ensure original is released to avoid duplicate guid error

circular17 hace 6 años
padre
commit
edaf090459
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lazpaint/image/uimagediff.pas

+ 1 - 0
lazpaint/image/uimagediff.pas

@@ -1172,6 +1172,7 @@ begin
     imgState.LayeredBitmap.LayerOriginalRenderStatus[layerIdx] := orsNone;
     imgState.LayeredBitmap.RenderLayerFromOriginal(layerIdx);
   end;
+  imgState.LayeredBitmap.RemoveUnusedOriginals;
 end;
 
 procedure TReplaceLayerByOriginalDifference.UnapplyTo(AState: TState);