File tree 1 file changed +7
-2
lines changed
lib/js/src/manager/screen
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ class _TextAndGraphicUpdateOperation extends _Task {
78
78
this . _finishOperation ( false ) ;
79
79
return ;
80
80
}
81
- this . _fullShow = new Show ( ) . setAlignment ( this . _updatedState . getTextAlignment ( ) ) ;
81
+ this . _fullShow = new Show ( ) ;
82
+ if ( this . _updatedState . getTextAlignment ( ) !== null && this . _updatedState . getTextAlignment ( ) !== undefined ) {
83
+ this . _fullShow = this . _fullShow . setAlignment ( this . _updatedState . getTextAlignment ( ) ) ;
84
+ }
82
85
this . _fullShow = this . _assembleShowText ( this . _fullShow ) ;
83
86
this . _fullShow = this . _assembleShowImages ( this . _fullShow ) ;
84
87
this . _fullShow = this . _assembleLayout ( this . _fullShow ) ;
@@ -529,7 +532,9 @@ class _TextAndGraphicUpdateOperation extends _Task {
529
532
newShow . setMainField4 ( show . getMainField4 ( ) ) ;
530
533
newShow . setTemplateTitle ( show . getTemplateTitle ( ) ) ;
531
534
newShow . setMetadataTags ( show . getMetadataTags ( ) ) ;
532
- newShow . setAlignment ( show . getAlignment ( ) ) ;
535
+ if ( show . getAlignment ( ) !== null && show . getAlignment ( ) !== undefined ) {
536
+ newShow . setAlignment ( show . getAlignment ( ) ) ;
537
+ }
533
538
534
539
if ( this . _showRpcSupportsTemplateConfiguration ( ) ) {
535
540
newShow . setTemplateConfiguration ( show . getTemplateConfiguration ( ) ) ;
You can’t perform that action at this time.
0 commit comments