commit | 5768f5055c95f4fdd9dad479ac1f56604a29aba2 | [log] [tgz] |
---|---|---|
author | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | Wed Nov 16 02:16:53 2011 +0000 |
committer | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | Wed Nov 16 02:16:53 2011 +0000 |
tree | 409404a7858314f79cc55257b09f8a8f7bef4e32 | |
parent | a7acde600e171e08e75138318308de83f38b3097 [diff] |
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
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 @@ 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 =