summaryrefslogtreecommitdiffstats
path: root/core/src/solving.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-12-25 15:46:31 +0100
committerMinijackson <minijackson@riseup.net>2022-12-25 15:46:31 +0100
commit30f7d39ca2ed4590b5d356b1a4c024d11156a383 (patch)
tree115d8af6f02ec6d42e0a794ac57c391f3d10d6f7 /core/src/solving.rs
parent92a02c34628343153b33602eae00cef46e28d191 (diff)
downloaddiaphragm-30f7d39ca2ed4590b5d356b1a4c024d11156a383.tar.gz
diaphragm-30f7d39ca2ed4590b5d356b1a4c024d11156a383.zip
WIP before core rewrite
Diffstat (limited to 'core/src/solving.rs')
-rw-r--r--core/src/solving.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/solving.rs b/core/src/solving.rs
index c7e94ba..4760611 100644
--- a/core/src/solving.rs
+++ b/core/src/solving.rs
@@ -196,7 +196,7 @@ impl Constrainable for StrokeStyle {
196 }; 196 };
197 197
198 Some(DefinedStrokeStyle { 198 Some(DefinedStrokeStyle {
199 pattern: self.pattern.clone(), 199 pattern: self.pattern,
200 dash, 200 dash,
201 line_width: self.line_width.fixate(model)?, 201 line_width: self.line_width.fixate(model)?,
202 }) 202 })
@@ -249,7 +249,7 @@ impl Constrainable for FontDescription {
249 family: self.family.clone(), 249 family: self.family.clone(),
250 style: self.style, 250 style: self.style,
251 weight: self.weight, 251 weight: self.weight,
252 size: self.size.fixate(&*model)?, 252 size: self.size.fixate(model)?,
253 }) 253 })
254 } 254 }
255} 255}
@@ -260,7 +260,7 @@ impl Constrainable for Text {
260 fn fixate(&self, model: &dyn SolverModel) -> Option<Self::Fixated> { 260 fn fixate(&self, model: &dyn SolverModel) -> Option<Self::Fixated> {
261 Some(DefinedText { 261 Some(DefinedText {
262 content: self.content.clone(), 262 content: self.content.clone(),
263 font: self.font.fixate(&*model)?, 263 font: self.font.fixate(model)?,
264 }) 264 })
265 } 265 }
266} 266}