[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kviewshell-0.7/kviewshell/plugins/dvi
From: Stefan Kebekus <kebekus () kde ! org>
Date: 2006-10-30 19:13:33
Message-ID: 1162235613.393215.31649.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 600493 by kebekus:
fixes problems with unbalanced parenthesis is certain links
M +4 -2 special.cpp
--- branches/work/kviewshell-0.7/kviewshell/plugins/dvi/special.cpp #600492:600493
@@ -738,9 +738,11 @@
int parencount = 1;
for(int i=0; i<tmpTargetName.length(); i++) {
if (tmpTargetName[i] == '(')
- parencount++;
+ if ((i == 0) || (tmpTargetName[i-1] != '\\'))
+ parencount++;
if (tmpTargetName[i] == ')')
- parencount--;
+ if ((i == 0) || (tmpTargetName[i-1] != '\\'))
+ parencount--;
if (parencount == 0)
break;
targetName += tmpTargetName[i];
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic