diff --git a/src/widgets/AttachedWindow.cpp b/src/widgets/AttachedWindow.cpp index acb00263bfe..a3fb20c858c 100644 --- a/src/widgets/AttachedWindow.cpp +++ b/src/widgets/AttachedWindow.cpp @@ -273,7 +273,7 @@ void AttachedWindow::updateWindowRect(void *_attachedPtr) float scale = 1.f; if (auto dpi = getWindowDpi(attached)) { - scale = dpi.get() / 96.f; + scale = *dpi / 96.f; for (auto w : this->ui_.split->findChildren()) {