[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/kdvi
From:       Wilfried Huss <Wilfried.Huss () gmx ! at>
Date:       2005-04-21 20:23:43
Message-ID: 20050421202343.19F07651 () office ! kde ! org
[Download RAW message or body]

CVS commit by whuss: 

Store single characters into the textLinkList if possible, to allow finer grained \
selections.


  M +6 -14     dviwin_draw.cpp   1.80


--- kdegraphics/kdvi/dviwin_draw.cpp  #1.79:1.80
@@ -139,17 +139,9 @@ void dviRenderer::set_char(unsigned int 
   // Code for DVI -> text functions (e.g. marking of text, full text
   // search, etc.). Set up the currentlyDrawnPage->textLinkList.
-  if (line_boundary_encountered == true) {
-    // Set up source hyperlinks
     Hyperlink link;
     link.baseline = currinf.data.pxl_v;
     link.box.setRect(x, y, pix.width(), pix.height());
     link.linkText = "";
-    
     currentlyDrawnPage->textLinkList.push_back(link);
-  } else {
-    // line boundary encountered
-    QRect dshunion = \
currentlyDrawnPage->textLinkList[currentlyDrawnPage->textLinkList.size()-1].box.unite(QRect(x, \
                y, pix.width(), pix.height())) ;
-    currentlyDrawnPage->textLinkList[currentlyDrawnPage->textLinkList.size()-1].box \
                = dshunion;
-  }
   
   switch(ch) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic