aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-15 16:25:12 -0500
committerbob <bcz@cs.brown.edu>2019-02-15 16:25:12 -0500
commit35ac75738a707f7001f6b881e8ad8d6f058c6892 (patch)
tree34b33b734b0fbcd7317228354cbca3332b283342 /src/client/documents/Documents.ts
parent1e5c20010544b12936fbc8dd0bddfb11b947fbd3 (diff)
working version.... kind of
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 210e63cd3..118f0d83f 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -33,19 +33,19 @@ export namespace Documents {
}
function setupOptions(doc: Document, options: DocumentOptions): void {
- if (options.x) {
+ if (options.x != undefined) {
doc.SetData(KeyStore.X, options.x, NumberField);
}
- if (options.y) {
+ if (options.y != undefined) {
doc.SetData(KeyStore.Y, options.y, NumberField);
}
- if (options.width) {
+ if (options.width != undefined) {
doc.SetData(KeyStore.Width, options.width, NumberField);
}
- if (options.height) {
+ if (options.height != undefined) {
doc.SetData(KeyStore.Height, options.height, NumberField);
}
- if (options.title) {
+ if (options.title != undefined) {
doc.SetData(KeyStore.Title, options.title, TextField);
}
doc.SetData(KeyStore.Scale, 1, NumberField);