mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-19 16:46:34 +00:00
Text Frame Options: the paragraph spacing limit set without another branch in text_frame_options
Keeps the function within clippy's cognitive complexity limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4145fcbc44
commit
963ac447fa
1 file changed
+1
-3
@@ -2592,9 +2592,7 @@ fn text_frame_options(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
if let Some(v) = reference {
|
||||
o.auto_size_ref = v;
|
||||
}
|
||||
if let Some(v) = spacing_limit {
|
||||
o.vj_paragraph_spacing_limit = v;
|
||||
}
|
||||
o.vj_paragraph_spacing_limit = spacing_limit.unwrap_or(o.vj_paragraph_spacing_limit);
|
||||
if let Some(v) = p.get("useMinimumHeight").and_then(Value::as_bool) {
|
||||
o.auto_size_use_min_height = v;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user