summaryrefslogtreecommitdiff
path: root/src/layout/flex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/flex.rs')
-rw-r--r--src/layout/flex.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs
index f966eae2..730b876e 100644
--- a/src/layout/flex.rs
+++ b/src/layout/flex.rs
@@ -1,6 +1,6 @@
//! Flexible and lazy layouting of boxes.
-use crate::doc::TextAction;
+use crate::doc::LayoutAction;
use crate::size::{Size, Size2D};
use super::{BoxLayout, ActionList, LayoutSpace, LayoutResult, LayoutError};
@@ -157,7 +157,7 @@ impl FlexFinisher {
fn append(&mut self, layout: BoxLayout) {
// Move all actions into this layout and translate absolute positions.
self.actions.reset_origin();
- self.actions.add(TextAction::MoveAbsolute(self.cursor));
+ self.actions.add(LayoutAction::MoveAbsolute(self.cursor));
self.actions.set_origin(self.cursor);
self.actions.extend(layout.actions);