Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
#!/usr/bin/env python# -*- coding: utf-8 -*-# This file is part of Beremiz# Copyright (C) 2019: Edouard TISSERANT## See COPYING file for copyrights details.from __future__ import absolute_importfrom svghmi.svghmi import *