Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix compilation because of missing std::get

Dmitry Kazakovad8b5e173fdb
diff --git a/libs/widgets/KoZoomActionState.cpp b/libs/widgets/KoZoomActionState.cpp
index 8f47f275f4..575e55ab20 100644
--- a/libs/widgets/KoZoomActionState.cpp
+++ b/libs/widgets/KoZoomActionState.cpp
@@ -98,7 +98,7 @@ void KoZoomActionState::setZoomState(const KoZoomState &newState)
auto textForFixedMode = [&] (const int index) {
ZoomItem zoomItem = realGuiLevels[index];
return i18nc("concatenate mode name (e.g. \"Fit Page\") and real zoom percent string", "%1 (%2)",
- get<QString>(zoomItem),
+ std::get<QString>(zoomItem),
zoomToString(newState.zoom));
};
@@ -118,7 +118,7 @@ void KoZoomActionState::setZoomState(const KoZoomState &newState)
case KoZoomMode::ZOOM_CONSTANT:
default:
currentRealLevelIndex = proposedCurrentIndex;
- currentRealLevelText = get<QString>(realGuiLevels[currentRealLevelIndex]);
+ currentRealLevelText = std::get<QString>(realGuiLevels[currentRealLevelIndex]);
break;
}