Browse Source

no drawing of shapes on SVG layer

Johann 6 years ago
parent
commit
9ff363fdb5

File diff suppressed because it is too large
+ 3 - 1196
lazpaint/release/bin/i18n/lazpaint.ar.po


File diff suppressed because it is too large
+ 3 - 1197
lazpaint/release/bin/i18n/lazpaint.cs.po


File diff suppressed because it is too large
+ 3 - 1197
lazpaint/release/bin/i18n/lazpaint.de.po


File diff suppressed because it is too large
+ 3 - 1196
lazpaint/release/bin/i18n/lazpaint.es.po


File diff suppressed because it is too large
+ 31 - 1220
lazpaint/release/bin/i18n/lazpaint.fi.po


File diff suppressed because it is too large
+ 3 - 1196
lazpaint/release/bin/i18n/lazpaint.fr.po


File diff suppressed because it is too large
+ 23 - 1216
lazpaint/release/bin/i18n/lazpaint.ja.po


File diff suppressed because it is too large
+ 7 - 1198
lazpaint/release/bin/i18n/lazpaint.lv.po


File diff suppressed because it is too large
+ 3 - 1198
lazpaint/release/bin/i18n/lazpaint.nl.po


File diff suppressed because it is too large
+ 803 - 1998
lazpaint/release/bin/i18n/lazpaint.po


File diff suppressed because it is too large
+ 1 - 1196
lazpaint/release/bin/i18n/lazpaint.pt_BR.po


File diff suppressed because it is too large
+ 3 - 1191
lazpaint/release/bin/i18n/lazpaint.ru.po


File diff suppressed because it is too large
+ 25 - 1218
lazpaint/release/bin/i18n/lazpaint.sv.po


+ 6 - 1
lazpaint/tools/utoolbasic.pas

@@ -144,7 +144,7 @@ implementation
 
 uses Types, Graphics, ugraph, Controls, LazPaintType,
   UResourceStrings, BGRATransform, Math, BGRAPen, LCVectorRectShapes,
-  uimagediff, UStateType, ULoading;
+  uimagediff, UStateType, ULoading, BGRASVGOriginal;
 
 { TVectorialTool }
 
@@ -473,6 +473,11 @@ begin
       MessagePopup(rsTooManyShapesInLayer, 3000);
     end
     else
+    if Manager.Image.LayerOriginalClass[Manager.Image.CurrentLayerIndex] = TBGRALayerSVGOriginal then
+    begin
+      MessagePopup(rsCannotDrawShapeOnSVGLayer, 3000);
+    end
+    else
     begin
       toolDest := GetToolDrawingLayer;
       FSwapColor:= rightBtn;

+ 1 - 0
lazpaint/uresourcestrings.pas

@@ -175,6 +175,7 @@ resourcestring
   rsOpenFilesAsLayers='Open files as layers in a single image';
   rsTooManyLayers='Too many layers';
   rsTooManyShapesInLayer='Too many shapes in layer';
+  rsCannotDrawShapeOnSVGLayer='Cannot draw shape on SVG layer';
   rsAddToImageList='Add files to the image processing list';
   rsOpenFirstFileOnly='Open the first file only';
   rsLayeredImage = 'Layered image';

Some files were not shown because too many files changed in this diff