Commit 0d66c07
committed
[Bug 15970] New logic for choosing stack file saving format
If no stack format is requested, try to use the latest one available.
If a specific stack file format is requested, try to save in that
format, and produce an error if doing so would cause data loss. At
the moment, this means that saving a stack produces an error if the
stack contains widgets and 8.0 format wasn't requested.
If 8.0 stack format is requested, but no widgets are present, use 7.0
format.
Set the `stackfileversion` to "8.0" by default, so that `save stack`
preserves widgets.1 parent 2834680 commit 0d66c07
2 files changed
+16
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1079 | 1083 | | |
1080 | 1084 | | |
1081 | | - | |
1082 | | - | |
1083 | 1085 | | |
1084 | 1086 | | |
1085 | 1087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| |||
0 commit comments