Find/Change saved queries lose numeric precision for indent values
Version:
Adobe InDesign 21.0.2
macOS 26.2
Issue also observed in much earlier versions (since CS5.5).
Steps to reproduce:
Create a document with paragraph units set to millimeters.
Create a paragraph with a left indent of exactly 5 mm.
Open Find/Change.
In Find Text, set Left Indent to 5 mm by typing it manually.
Run Find – the paragraph is found.
Save this Find/Change query.
Reload the saved query.
Run Find again.
Expected result:
The saved query should find the same paragraphs as when the value is entered manually.
Actual result:
After reloading the saved query, the paragraph is not found.
Additional details:
Via the scripting API the difference can be observed.
Manual entry via UI:
app.findTextPreferences.leftIndent = 14.1732283464567
After reloading saved query:
app.findTextPreferences.leftIndent = 14.17322834
The reduced numeric precision causes the query to fail.
This appears to be a precision loss when persisting Find/Change query settings.
The issue affects both UI and scripting workflows.
Using paragraph or character styles does not prevent this issue, as it is related to how numeric values are stored and restored in saved queries.
-
Vasily Korablev commented
ok