merge with stable
diff --git a/CHANGES b/CHANGES
index 865e906..6279c44 100644
--- a/CHANGES
+++ b/CHANGES
@@ -70,6 +70,7 @@
 Bugs fixed
 ----------
 
+* #1568: fix a crash when a "centered" directive contains a reference.
 * #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
   AssertionError for correct type of argument. Thanks to rikoman.
 * #1174: Fix smart quotes being applied inside roles like :rst:role:`program` or
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index 99f387e..55abdb0 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -107,7 +107,7 @@
     *entrytype* is one of "single", "pair", "double", "triple".
     """
 
-class centered(nodes.Part, nodes.Element):
+class centered(nodes.Part, nodes.TextElement):
     """Deprecated."""
 
 class acks(nodes.Element):