Empty paragraph in ToC target - ToC broken

3 posts, 0 answers
  1. Charles
    Charles avatar
    41 posts
    Member since:
    Mar 2012

    Posted 14 Dec 2012 Link to this post

    Hi

    I'm using the latest released 1129 build.  Create a new document.

    Add text such as

    "Heading 1

    Heading 2"

    Highlight all, set to Heading 1 style.

    Generate ToC.  This will not work.  The code throws an exception during InsertTableOfContentsCommand.PrepareExecuteCore(). 

    This seems to be because empty paragraphs are skipped and no bookmark added to "paragraphToBookmark" dictionary, but the later foreach loop that iterates the paragraphs and gets bookmark names from this dictionary doesn't skip any paragraphs - so the empty ones will throw an exception, as they aren't in the dictionary.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 19 Dec 2012 Link to this post

    Hello Charles,

    Thank you for reporting this issue. We will log it and try to address it soon.

    We have updated your Telerik points as a token of appreciation for reporting this issue and taking the time to investigate yourself what is wrong with the implementation.

    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 20 Dec 2012 Link to this post

    Hi Charles,

    Actually this bug has already been fixed in an internal build, so if you download the LIB from your account, you should no longer experience this problem.

    All the best,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top