Fix some compile warnings in macOS build (#2027)

* Fix some compile warnings in macOS build

* Update macOS Info.plist template
This commit is contained in:
Sergey Zolotarev
2021-11-01 14:59:51 +06:00
committed by GitHub
parent c3cde5ab2f
commit 065aa98ce4
8 changed files with 24 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
// Based on Lightscreen areadialog.cpp, Copyright 2017 Christian Kaiser
@@ -506,7 +506,7 @@ void CaptureWidget::showColorPicker(const QPoint& pos)
{
// Try to select new object if current pos out of active object
auto toolItem = activeToolObject();
if (!toolItem || toolItem && !toolItem->boundingRect().contains(pos)) {
if (!toolItem || (toolItem && !toolItem->boundingRect().contains(pos))) {
selectToolItemAtPos(pos);
}