This commit is contained in:
Kovid Goyal 2012-04-11 10:33:35 +05:30
parent 055690844a
commit 5fd415ea2d
2 changed files with 5 additions and 1 deletions

View File

@ -249,6 +249,7 @@ class Widget(QWidget):
def set_value_handler(self, g, val):
'Return True iff you handle setting the value for g'
return False
def post_set_value(self, g, val):

View File

@ -760,7 +760,10 @@ class ODF2XHTML(handler.ContentHandler):
def s_draw_object_ole(self, tag, attrs):
""" A <draw:object-ole> is embedded OLE object in the document (e.g. MS Graph).
"""
try:
class_id = attrs[(DRAWNS,"class-id")]
except KeyError: # Added by Kovid to ignore <draw> without the right
return # attributes
if class_id and class_id.lower() == "00020803-0000-0000-c000-000000000046": ## Microsoft Graph 97 Chart
tagattrs = { 'name':'object_ole_graph', 'class':'ole-graph' }
self.opentag('a', tagattrs)