[libcroco] Use the right values for checking CRPredefinedAbsoluteFontSize
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libcroco] Use the right values for checking CRPredefinedAbsoluteFontSize
- Date: Tue, 5 Aug 2014 11:58:48 +0000 (UTC)
commit a7df9d26a96bb48ccff06f4543c134e545b90c40
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Tue Aug 5 08:23:42 2014 +0000
Use the right values for checking CRPredefinedAbsoluteFontSize
https://bugzilla.gnome.org/show_bug.cgi?id=710076
src/cr-fonts.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cr-fonts.c b/src/cr-fonts.c
index 6ef347e..7891afa 100644
--- a/src/cr-fonts.c
+++ b/src/cr-fonts.c
@@ -420,8 +420,8 @@ cr_font_size_set_predefined_absolute_font_size (CRFontSize *a_this,
enum CRPredefinedAbsoluteFontSize a_predefined)
{
g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR) ;
- g_return_val_if_fail (a_predefined >= PREDEFINED_ABSOLUTE_FONT_SIZE
- && a_predefined < NB_FONT_SIZE_TYPE,
+ g_return_val_if_fail (a_predefined >= FONT_SIZE_XX_SMALL
+ && a_predefined < NB_PREDEFINED_ABSOLUTE_FONT_SIZES,
CR_BAD_PARAM_ERROR) ;
a_this->type = PREDEFINED_ABSOLUTE_FONT_SIZE ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]