File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1183,7 +1183,7 @@ class RPadPainter extends RObjectPainter {
11831183
11841184 const mainid = this . selectDom ( ) . attr ( 'id' ) ;
11851185
1186- if ( ! this . isBatchMode ( ) && ! this . use_openui && ! this . brlayout && mainid && isStr ( mainid ) && ! getHPainter ( ) ) {
1186+ if ( ! this . isBatchMode ( ) && this . online_canvas && ! this . use_openui && ! this . brlayout && mainid && isStr ( mainid ) && ! getHPainter ( ) ) {
11871187 this . brlayout = new BrowserLayout ( mainid , null , this ) ;
11881188 this . brlayout . create ( mainid , true ) ;
11891189 this . setDom ( this . brlayout . drawing_divid ( ) ) ; // need to create canvas
Original file line number Diff line number Diff line change @@ -1879,7 +1879,7 @@ class TPadPainter extends ObjectPainter {
18791879
18801880 const mainid = this . selectDom ( ) . attr ( 'id' ) ;
18811881
1882- if ( ! this . isBatchMode ( ) && ! this . use_openui && ! this . brlayout && mainid && isStr ( mainid ) && ! getHPainter ( ) ) {
1882+ if ( ! this . isBatchMode ( ) && this . online_canvas && ! this . use_openui && ! this . brlayout && mainid && isStr ( mainid ) && ! getHPainter ( ) ) {
18831883 this . brlayout = new BrowserLayout ( mainid , null , this ) ;
18841884 this . brlayout . create ( mainid , true ) ;
18851885 this . setDom ( this . brlayout . drawing_divid ( ) ) ; // need to create canvas
You can’t perform that action at this time.
0 commit comments