Bug 75332 - Clicking on a child tag in the Structure tabview will jump to it's parent
Summary: Clicking on a child tag in the Structure tabview will jump to it's parent
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-16 09:27 UTC by Mathieu Kooiman
Modified: 2004-02-26 00:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Kooiman 2004-02-16 09:27:55 UTC
Version:           CVS version ( 4/12/2004 ) (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
 
OS:          Linux

Using the structure tab view, when I click a <table> tag once the selection 
moves to it's direct parent. Is this supposed to happen? 

So, considering <body><table></table></body>, if I click the <table> once in the 
structure tab, the selection in the structure tab jumps to <body>. Clicking
  twice will actually leave the <table> selected.
Comment 1 András Manţia 2004-02-26 00:30:48 UTC
CVS commit by amantia: 

Fix the "Clicking on a child tag in the Structure tabview will jump to it's parent" bug.

CCMAIL: 75332-done@bugs.kde.org


  M +1 -0      ChangeLog   1.220
  M +3 -1      treeviews/structtreeview.cpp   1.98


--- kdewebdev/quanta/ChangeLog  #1.219:1.220
@@ -18,4 +18,5 @@
         - don't crash when setting table/body/header/footer attributes for newly created tables [#74949]
         - make the spellchecker actually replace the wrongly spelled words [#75106]
+        - don't switch to the parent node when clicking on a node in the structure tree and Follow Cursor is enabled [#75332]
         - various parsing fixes        
         - report bugs for "quanta" module, not for "quanta_be"        

--- kdewebdev/quanta/treeviews/structtreeview.cpp  #1.97:1.98
@@ -396,9 +396,11 @@ void StructTreeView::slotGotoTag( QListV
     int el, ec;
     tag->endPos(el, ec);
+/*    
     kdDebug(24000) << "Node area: " << line << ", " << col << ", " << el << ", " << ec << endl;
     kdDebug(24000) << "Node type: " << tag->type << endl;
     kdDebug(24000) << "Node str: " << tag->tagStr() << endl;
     kdDebug(24000) << "Node cleanstr: " << tag->cleanStr << endl;
-    emit newCursorPosition( line, col);
+*/    
+    emit newCursorPosition(line, col + 1);
     if (quantaApp->view()->writeExists())
       quantaApp->view()->write()->view()->setFocus();