Skip to content

Commit

Permalink
Use MainWindow instead of Canvas to create the PangoContext.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Mar 10, 2015
1 parent 402107f commit 25cee68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pinta.Core/Classes/Re-editable/Text/TextLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public TextEngine Engine {

public TextLayout ()
{
Layout = new Pango.Layout (PintaCore.Chrome.Canvas.PangoContext);
Layout = new Pango.Layout (PintaCore.Chrome.MainWindow.PangoContext);
}

public Rectangle[] SelectionRectangles
Expand Down

0 comments on commit 25cee68

Please sign in to comment.