Skip to content

Commit

Permalink
Merge pull request #6 from ensonic/ev3dev-jessie
Browse files Browse the repository at this point in the history
font: fix a copy'n'paste mistake
  • Loading branch information
dlech committed Jan 4, 2017
2 parents e4c8323 + 2622e2d commit 4794ce9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ui/Fonts.vala
Expand Up @@ -31,6 +31,8 @@ namespace Ev3devKit.Ui.Fonts {
unowned Font default_font;
Font _small_font;
unowned Font small_font;
Font _big_font;
unowned Font big_font;

/**
* Gets the default font.
Expand Down Expand Up @@ -58,10 +60,10 @@ namespace Ev3devKit.Ui.Fonts {
* Gets the big font.
*/
public unowned Font get_big () {
if (small_font == null) {
_small_font = Font.load ("lucs21");
small_font = _small_font ?? Font.pc8x14;
if (big_font == null) {
_big_font = Font.load ("lucs21");
big_font = _big_font ?? Font.pc8x14;
}
return small_font;
return big_font;
}
}

0 comments on commit 4794ce9

Please sign in to comment.