elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.79k stars 393 forks source link

Error Exception from InsertHighLightCodeToCurrentSide #116

Open Leboubou111 opened 4 years ago

Leboubou111 commented 4 years ago

Hi,

I've this error when I attempt to insert code with this plugin. OneNote 2016 32bit - Windows 10 Pro

image

anders43 commented 4 years ago

I have the same error when I do quick style, when I turn off quick style it works. I tried both 64-bit and x86 bit version. Reinstalled, repaired etc. This works on another PC I got so it is weird. I use Onenote 2016.

Seems it happens here

          //Bug fix - remove overflow value for Indents
          foreach (var el in page.Descendants(Ns + "Indent").Where(n => double.Parse(n.Attribute("indent").Value, new CultureInfo(page.Root.Attribute("lang").Value)) > 1000000))
          {
            el.Attribute("indent").Value = "0";
          }
FumbleBe commented 3 years ago

Same here. If I select text in Onenote then try apply style, I have this popup box.

If I open one style box then paste my text in it, it's working.