From dab3ba511900d1597c858c71f0a7c9d7f300ec20 Mon Sep 17 00:00:00 2001 From: Martin van Zijl Date: Apr 30 2020 02:30:46 +0000 Subject: Use correct default units when re-showing Create Level popup. (#3261) Fixes part of #3254. --- diff --git a/toonz/sources/toonz/levelcreatepopup.cpp b/toonz/sources/toonz/levelcreatepopup.cpp index dedd032..20211ef 100644 --- a/toonz/sources/toonz/levelcreatepopup.cpp +++ b/toonz/sources/toonz/levelcreatepopup.cpp @@ -345,11 +345,15 @@ void LevelCreatePopup::showEvent(QShowEvent *) { m_dpiLabel->hide(); m_widthFld->setDecimals(0); m_heightFld->setDecimals(0); + m_widthFld->setMeasure("camera.lx"); + m_heightFld->setMeasure("camera.ly"); } else { m_dpiFld->show(); m_dpiLabel->show(); m_widthFld->setDecimals(4); m_heightFld->setDecimals(4); + m_widthFld->setMeasure("level.lx"); + m_heightFld->setMeasure("level.ly"); } }