mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-09 10:45:13 +00:00
Fix to config.txt file error catching for auto indent spacing
This commit is contained in:
parent
8abc34c99e
commit
0db73ad071
|
@ -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$)
|
||||||
|
|
Loading…
Reference in a new issue