summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2014-03-01 03:31:08 +0000
committerJon A. Cruz <jon@joncruz.org>2014-03-01 03:31:08 +0000
commit474c6455b1d0ef04ca416e42f09bd48efee6a186 (patch)
tree2e7aef3a0a29575f824e5b4b912ffdf1252e63e7 /src/libnrtype
parentRemove unused shadowed variables. (diff)
downloadinkscape-474c6455b1d0ef04ca416e42f09bd48efee6a186.tar.gz
inkscape-474c6455b1d0ef04ca416e42f09bd48efee6a186.zip
Remove unused variable.
(bzr r13079)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-OutIter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnrtype/Layout-TNG-OutIter.cpp b/src/libnrtype/Layout-TNG-OutIter.cpp
index 8d8621d64..6dc42d998 100644
--- a/src/libnrtype/Layout-TNG-OutIter.cpp
+++ b/src/libnrtype/Layout-TNG-OutIter.cpp
@@ -181,9 +181,10 @@ Layout::iterator Layout::sourceToIterator(void *source_cookie /*, Glib::ustring:
if (_input_stream[source_index]->Type() != TEXT_SOURCE)
return iterator(this, char_index);
- InputStreamTextSource const *text_source = static_cast<InputStreamTextSource const *>(_input_stream[source_index]);
return iterator(this, char_index);
/* This code was never used, the text_iterator argument was "NULL" in all calling code
+ InputStreamTextSource const *text_source = static_cast<InputStreamTextSource const *>(_input_stream[source_index]);
+
if (text_iterator <= text_source->text_begin) return iterator(this, char_index);
if (text_iterator >= text_source->text_end) {
if (source_index == _input_stream.size() - 1) return end();