Browse Source

TradeFiling fix build issue
Optimize ERP Mobile build warring

Ray Zhang 2 years ago
parent
commit
8413ccace4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      RedAnt ERP Mobile/common/pdfCreator/TextDrawable.m

+ 3 - 2
RedAnt ERP Mobile/common/pdfCreator/TextDrawable.m

@@ -10,6 +10,7 @@
 #import "const.h"
 #import <CoreText/CoreText.h>
 #import "TextUtils.h"
+#import "RAUtils.h"
 #define DEBUG_STRING_VALUE0 @"DEBUG OFF"
 #define DEBUG_STRING_VALUE1 @"DEBUG OFF"
 
@@ -26,8 +27,8 @@
         
         NSMutableDictionary * drawableTemplate = [TextDrawable createTextTemplate:rect source_type:source_type source:source textAlignment:textAlignment vAlign:vAlign size:size];
         
-        
-        [self setDrawableTemplate:[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:drawableTemplate]] ];
+        [self setDrawableTemplate: [[RAUtils copyDict:drawableTemplate] mutableCopy]];
+//        [self setDrawableTemplate:[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:drawableTemplate]] ];
         
     }
     return self;