diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-04 20:20:02 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-04 20:20:02 +0100 |
commit | fce5cce5fdc7bd265eb023dfc0fc1accbe5a796e (patch) | |
tree | c745b76fc01ff7fa8c38c5810682c8878ade1fc1 /src/plugins/html | |
parent | e76f58e912bd6661ba755d27da97bebf711f06ad (diff) |
set non-empty default field name.
Diffstat (limited to 'src/plugins/html')
-rw-r--r-- | src/plugins/html/DemoOutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/html/DemoOutput.cpp b/src/plugins/html/DemoOutput.cpp index 503c104..cefb3c9 100644 --- a/src/plugins/html/DemoOutput.cpp +++ b/src/plugins/html/DemoOutput.cpp @@ -318,7 +318,7 @@ Rooted<xml::Element> DemoHTMLTransformer::transformParagraph( std::string childDescriptorName = t->getDescriptor()->getName(); if (childDescriptorName == "text") { Handle<DocumentPrimitive> primitive = - t->getField()[0].cast<DocumentPrimitive>(); + t->getField("content")[0].cast<DocumentPrimitive>(); if (primitive.isNull()) { throw OusiaException("Text field is not primitive!"); } |