Skip to content

Commit

Permalink
correct build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Jan 18, 2024
1 parent 7d4bb06 commit db1120c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pdf/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ use crate::primitive::Primitive;
#[derive(Default)]
pub struct PageBuilder {
pub ops: Vec<Op>,
pub media_box: Option<ViewRect>,
pub crop_box: Option<ViewRect>,
pub trim_box: Option<ViewRect>,
pub media_box: Option<Rectangle>,
pub crop_box: Option<Rectangle>,
pub trim_box: Option<Rectangle>,
pub resources: Resources,
pub rotate: i32,
pub metadata: Option<Primitive>,
Expand Down Expand Up @@ -82,7 +82,7 @@ impl PageBuilder {
})
}
pub fn size(&mut self, width: f32, height: f32) {
self.media_box = Some(ViewRect {
self.media_box = Some(Rectangle {
top: 0.,
left: 0.,
bottom: height,
Expand Down
2 changes: 1 addition & 1 deletion pdf/src/object/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ pub struct Rectangle {
pub top: f32,
}
#[deprecated]
pub type ViewRect = Rectangle;
pub type Rect = Rectangle;

impl Object for Rectangle {
fn from_primitive(p: Primitive, r: &impl Resolve) -> Result<Self> {
Expand Down

0 comments on commit db1120c

Please sign in to comment.