summaryrefslogtreecommitdiffstats
path: root/grapher
diff options
context:
space:
mode:
authorTim Moore <moore@otter.bricoworks.com>2009-12-31 10:15:15 +0100
committerTim Moore <timoore@redhat.com>2009-12-31 10:25:13 +0100
commit72f28cc2cb57bbcc4e773069dad6cf75343fb396 (patch)
treedcd326e01f0604a22823356e24c7c3d20e85037a /grapher
parent42c5566805775fed6ac2f99d840bcbe531b112e8 (diff)
downloadsystemtap-steved-72f28cc2cb57bbcc4e773069dad6cf75343fb396.tar.gz
systemtap-steved-72f28cc2cb57bbcc4e773069dad6cf75343fb396.tar.xz
systemtap-steved-72f28cc2cb57bbcc4e773069dad6cf75343fb396.zip
grapher: workaround for bz 11118
* grapher/CairoWidget.cxx (CairoTextBox::draw): Use boost::is_from_range instead of is_any_of. Reports on the net suggest that is_any_of triggers a compiler bug.
Diffstat (limited to 'grapher')
-rw-r--r--grapher/CairoWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/CairoWidget.cxx b/grapher/CairoWidget.cxx
index 81a6d3c7..85675dc2 100644
--- a/grapher/CairoWidget.cxx
+++ b/grapher/CairoWidget.cxx
@@ -68,7 +68,7 @@ void CairoTextBox::draw(Cairo::RefPtr<Cairo::Context> cr)
double fontHeight = max(fontExtent.ascent + fontExtent.descent + 1.0,
fontExtent.height);
vector<string> lines;
- split(lines, contents, is_any_of("\n"));
+ split(lines, contents, is_from_range('\n', '\n'));
vector<Cairo::TextExtents> extents;
double width = 0.0, height = 0.0;
for (vector<string>::iterator itr = lines.begin(), end = lines.end();