Fix Formatting loading.
authorMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2012 18:38:12 +0000 (20:38 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2012 18:38:12 +0000 (20:38 +0200)
commita74e61a90de39a85d5f0eedf7ec407407e28a59e
treed09910795de0b64798c4fdadd8fcca925203e3ab
parentd6045eeb022500f500c8ab0ecdae4c1cb566165f
Fix Formatting loading.

* src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
getFormattingUsed(): Remove the duplicate Formatting member variable
in favour of the one from the base class.
* src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
Initialize a new Formatting instead of using null by default, so we
have some defaults, instead of having to initialize one later just to
get the same defaults. This also makes loading of formatting from the
document work, because that expected a non-null.
ChangeLog
src/main/java/org/glom/web/client/ui/list/ListTable.java
src/main/java/org/glom/web/server/libglom/Document.java
src/main/java/org/glom/web/shared/libglom/Field.java
src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java
src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java