aboutsummaryrefslogtreecommitdiff
path: root/cpp/src/sfntly
diff options
context:
space:
mode:
authorarthurhsu <arthurhsu@google.com>2011-11-16 02:16:53 +0000
committerarthurhsu <arthurhsu@google.com>2011-11-16 02:16:53 +0000
commitb127bff423b200da3cfe3b06551cd5e9a895dd30 (patch)
treef068d5c418838e490db52236fdcd8099524f1876 /cpp/src/sfntly
parent9e5bf57583793d6db93bb01fd982760ad110a50f (diff)
downloadsfntly-b127bff423b200da3cfe3b06551cd5e9a895dd30.tar.gz
Fix bug in HDMX table (from stuartg's code review)
Diffstat (limited to 'cpp/src/sfntly')
-rw-r--r--cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc b/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc
index 34d03e6..50b0cf5 100644
--- a/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc
+++ b/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc
@@ -102,8 +102,8 @@ void HorizontalDeviceMetricsTable::Builder::SetNumGlyphs(int32_t num_glyphs) {
if (num_glyphs < 0) {
#if !defined (SFNTLY_NO_EXCEPTION)
throw IllegalArgumentException("Number of glyphs can't be negative.");
- return;
#endif
+ return;
}
num_glyphs_ = num_glyphs;
HorizontalDeviceMetricsTable* table =