avoid w/h <= 0
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
b042643dfb
commit
8a09abbf71
@ -371,7 +371,7 @@ class FfiModel with ChangeNotifier {
|
||||
|
||||
_updateSessionWidthHeight(String id) {
|
||||
parent.target?.canvasModel.updateViewStyle();
|
||||
if (display.width < 0 || display.height < 0) {
|
||||
if (display.width <= 0 || display.height <= 0) {
|
||||
debugPrintStack(label: 'invalid display size (${display.width},${display.height})');
|
||||
} else {
|
||||
bind.sessionSetSize(id: id, width: display.width, height: display.height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user