Skip to content

Cannot create new boxes in Windows build #115

Description

@jharaldson

After building the Windows version it is not possible to add new boxes. When pressing "n" a new untitled box is created in the background, but not drawn on the canvas.

It seems boxOutline and boxBackground are not created as expected. Not sure where the plane parameter comes from. Probably something wrong with the build, since the prebuilt version "field_alpha41_windows" works as expected.

The box that is created gets saved in a new file:

{
  "plane" "__page_-1__"
  "__boxclass__" "fieldbox.boxes.Box"
  "__id__" "_28b991bf_bf8b_4e8e_b402_4e3ab1dee98e"
  "__datafilename__" "{{workspace}}/Untitled00000.box"
  "name" "Untitled"
  "frame" #field/rect{
    :x 528.0
    :y 312.0
    :w 100.0
    :h 100.0
  }
}

A box that is created using the pre-built version of Field results in the following:

{
  "boxOutline" #field/serializable{
    :base64 "rO0ABXNyABFmaWVsZC5saW5hbGcuVmVjNAAAAAAAAAABDAAAeHB3IAAAAAAAAAAAAAAAAAAAAAA/0zMzMzMzMz/QAAAAAAAAeA=="
  }
  "__boxclass__" "fieldbox.boxes.Box"
  "__id__" "_cdf41fa3_4a1b_49f0_ac05_f8af6402c636"
  "__datafilename__" "{{workspace}}/Untitled.box"
  "boxBackground" #field/serializable{
    :base64 "rO0ABXNyABFmaWVsZC5saW5hbGcuVmVjNAAAAAAAAAABDAAAeHB3ID/wAAAAAAAAP+5mZmZmZmY/7MzMzMzMzT/oAAAAAAAAeA=="
  }
  "name" "Untitled"
  "frame" #field/rect{
    :x 378.0
    :y 180.0
    :w 100.0
    :h 100.0
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions