mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 03:04:39 +00:00
Merge pull request #6482 from dotCooCoo/fix/prefs-reset-keeps-document-units
Preferences: Reset Preferences leaves the open document's units alone
This commit is contained in:
+2
-1
@@ -4500,7 +4500,8 @@ four: General (rulers, positions and sizes, the Info panel, dialog distances, ca
|
||||
(weights, dashes), Type (font size, leading, baseline shift) and East Asian Type (no field uses it yet). General is the active document's units
|
||||
(`document.inspect` → `units`): `document.setUnits {units}` (Document Setup) sets it for that document, and
|
||||
`prefs.set {key: "unitsGeneral", value}` sets it for the active document too (one undo step) and is the units
|
||||
`file.new` starts in when it gets no `units`. Stroke, Type and East Asian Type are the preferences `unitsStroke`,
|
||||
`file.new` starts in when it gets no `units`. With `documentUnits: false`, `prefs.set` sets only the preference and
|
||||
leaves the document's units as they are; Reset Preferences followed by OK in the Preferences dialog does this. Stroke, Type and East Asian Type are the preferences `unitsStroke`,
|
||||
`unitsType` and `unitsAsianType`. Only `unitsAsianType` also takes `q` (Q, `Q`) and `ha` (Ha, `Ha`), each a quarter of
|
||||
a millimetre (0.709 pt); the other preferences, `document.setUnits` and the rulers do not list them, and it is Points
|
||||
by default. A length typed with a unit
|
||||
|
||||
Reference in New Issue
Block a user