[TD] App: remove some superfluous nullptr checks
This commit is contained in:
@@ -73,8 +73,7 @@ void DrawViewImage::onChanged(const App::Property* prop)
|
||||
{
|
||||
App::Document* doc = getDocument();
|
||||
if (!isRestoring()) {
|
||||
if ((prop == &ImageFile) &&
|
||||
(doc != nullptr) ) {
|
||||
if ((prop == &ImageFile) && doc) {
|
||||
if (!ImageFile.isEmpty()) {
|
||||
replaceImageIncluded(ImageFile.getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user