mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 09:58:11 +08:00
Treat a free side as one lane in the extend split
This commit is contained in:
@@ -148,6 +148,8 @@ fn extend<T>(
|
|||||||
) -> Result<T, Interrupt> {
|
) -> Result<T, Interrupt> {
|
||||||
let split = match base.extent(ctx, Level::Total) {
|
let split = match base.extent(ctx, Level::Total) {
|
||||||
GPoll::Final(Extent::Exactly(count)) => count as u64,
|
GPoll::Final(Extent::Exactly(count)) => count as u64,
|
||||||
|
// A scalar side joins the concat as a single lane, per `Extent::sum`.
|
||||||
|
GPoll::Final(Extent::Free) => 1,
|
||||||
GPoll::Pending => return Err(Interrupt::Pending),
|
GPoll::Pending => return Err(Interrupt::Pending),
|
||||||
_ => return Err(GraphError::new("extend over a non-exact base extent").into()),
|
_ => return Err(GraphError::new("extend over a non-exact base extent").into()),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user