mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-172166 [linux] editor font size in Settings may decrease after restart
This commit is contained in:
@@ -378,7 +378,7 @@ class UISettings : BaseState(), PersistentStateComponent<UISettings> {
|
||||
if (UIUtil.isJreHiDPIEnabled() && !SystemInfo.isMac) size = UIUtil.DEF_SYSTEM_FONT_SIZE.toInt()
|
||||
}
|
||||
else {
|
||||
size = ((readSize.toFloat() / readScale) * normalizingScale).toInt()
|
||||
if (readScale != normalizingScale) size = Math.round((readSize / readScale) * normalizingScale)
|
||||
}
|
||||
LOG.info("Loaded: fontSize=$readSize, fontScale=$readScale; restored: fontSize=$size, fontScale=$normalizingScale")
|
||||
return size
|
||||
|
||||
Reference in New Issue
Block a user