5756: First names are sometimes displayed incorrectly in Ancestry View

svn: r20248
This commit is contained in:
Benny Malengier 2012-08-22 11:31:00 +00:00
parent 3aaa831fc6
commit a2191b7bbe

View File

@ -280,6 +280,7 @@ class PersonBoxWidgetCairo(_PersonWidgetBase):
#self.context.stroke() #self.context.stroke()
# Create box shape and store path # Create box shape and store path
self.context.save()
self.context.move_to(0, 5) self.context.move_to(0, 5)
self.context.curve_to(0, 2, 2, 0, 5, 0) self.context.curve_to(0, 2, 2, 0, 5, 0)
self.context.line_to(alloc.width-8, 0) self.context.line_to(alloc.width-8, 0)
@ -325,6 +326,7 @@ class PersonBoxWidgetCairo(_PersonWidgetBase):
self.context.paint() self.context.paint()
# text # text
self.context.restore()
self.context.move_to(5, 4) self.context.move_to(5, 4)
self.context.set_source_rgb(0, 0, 0) self.context.set_source_rgb(0, 0, 0)
self.context.show_layout(self.textlayout) self.context.show_layout(self.textlayout)