File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 3238
3238
}
3239
3239
//ss end
3240
3240
3241
- if ( svg . opts [ 'ignoreDimensions' ] == true && e . style ( 'width' ) . hasValue ( ) &&
3242
- e . style ( 'height' ) . hasValue ( ) ) {
3243
- cWidth = e . style ( 'width' ) . toPixels ( 'x' ) ;
3244
- cHeight = e . style ( 'height' ) . toPixels ( 'y' ) ;
3245
- }
3241
+ //ss
3242
+ if ( svg . opts [ 'ignoreDimensions' ] == true && e . style ( 'width' ) . hasValue ( ) && e . style ( 'height' ) . hasValue ( ) ) {
3243
+ try {
3244
+ cWidth = e . style ( 'width' ) . toPixels ( 'x' ) ;
3245
+ cHeight = e . style ( 'height' ) . toPixels ( 'y' ) ;
3246
+ } catch ( e ) {
3247
+ // This will always fail with jsPDF, as no viewport is set
3248
+ }
3249
+ }
3250
+ //ss end
3246
3251
svg . ViewPort . SetCurrent ( cWidth , cHeight ) ;
3247
3252
3248
3253
if ( svg . opts [ 'offsetX' ] != null ) e . attribute ( 'x' , true ) . value = svg . opts [
You can’t perform that action at this time.
0 commit comments