diff options
author | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | 2011-11-16 02:16:53 +0000 |
---|---|---|
committer | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | 2011-11-16 02:16:53 +0000 |
commit | 5768f5055c95f4fdd9dad479ac1f56604a29aba2 (patch) | |
tree | 409404a7858314f79cc55257b09f8a8f7bef4e32 | |
parent | a7acde600e171e08e75138318308de83f38b3097 (diff) | |
download | src-5768f5055c95f4fdd9dad479ac1f56604a29aba2.tar.gz |
Fix bug in HDMX table (from stuartg's code review)
git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@106 672e30a5-4c29-85ac-ac6d-611c735e0a51
-rw-r--r-- | sfntly/table/core/horizontal_device_metrics_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfntly/table/core/horizontal_device_metrics_table.cc b/sfntly/table/core/horizontal_device_metrics_table.cc index 34d03e6..50b0cf5 100644 --- a/sfntly/table/core/horizontal_device_metrics_table.cc +++ b/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 = |