1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 23:05:14 +00:00

Fix to config.txt file error catching for auto indent spacing

This commit is contained in:
SteveMcNeill 2015-08-20 11:13:25 -04:00
parent 8abc34c99e
commit 0db73ad071

View file

@ -181,12 +181,9 @@ IF LoadedIDESettings = 0 THEN
result = ReadConfigSetting("IDE_IndentSize", value$) result = ReadConfigSetting("IDE_IndentSize", value$)
ideautoindentsize = VAL(value$) ideautoindentsize = VAL(value$)
if result = 0 then if ideautoindentsize < 1 OR ideautoindentsize > 64 then
ideautoindentsize = 4 ideautoindentsize = 4
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_IndentSize", "4" WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_IndentSize", "4"
else
IF ideautoindentsize < 0 OR ideautoindentsize > 64 THEN ideautoindentsize = 4
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_IndentSize", "4"
end if end if
result = ReadConfigSetting("IDE_CustomFont", value$) result = ReadConfigSetting("IDE_CustomFont", value$)