Keep selection after clear formatting

This commit is contained in:
niksedk 2021-06-20 10:23:02 +02:00
parent b5b3bc539a
commit 202e1758a9
2 changed files with 60 additions and 61 deletions

View File

@ -30254,13 +30254,12 @@ namespace Nikse.SubtitleEdit.Forms
return; // nothing changed
}
var firstIdx = FirstSelectedIndex;
SaveSubtitleListviewIndices();
_subtitle.Renumber();
_subtitleOriginal?.Renumber();
SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
UpdateSourceView();
SubtitleListview1.SelectIndexAndEnsureVisibleFaster(firstIdx);
RefreshSelectedParagraph();
RestoreSubtitleListviewIndices();
ShowStatus(string.Format(_language.LinesUpdatedX, linesUpdated));
}

View File

@ -465,74 +465,74 @@
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOhSURBVFhH7VddSBVBFN5+7BcqEitD78zulpkUFREEQSJE
JApBLxVCFIEU3uvOrhRCxO0poocegqCCCIL8ubtoCRLYg9ZbEUYUIVH0s3tvlEQPZSGR2zl1rHXGn3v9
eeuDj8vu+WbOx5nZM3O1/5gMHlZXnfNt0R5l2hbXQk2bRZKZg8dYaXJ9yZBvJcK0I0ZSiN0kmzm4Zuyy
Z/Kwd99exUDgWHdINjNoK12df9PkA2igc9MGxcANRwxlGhrKSD798Ex2CpMP81nNQcVExhFXST69SJWV
zWsxeSZq4O72bYqBtHP0WyaRKKBh04eUyQ9FkyNbzKIPgW09lU1AFU7TsOmDp/Ne2YBrsjOw8Q7LBgLL
ev8ikZhPQ6cOWPsKOTnwe5Our8REmFAxYdcfoeFTR8pgHaMYuEZhLYCSywagMT2h8NTQrOslkOxnNHnS
5EOtur6RJBpuOtx8solAiF0kmTxcg1+KJkfC2ndR+C+gClcVA47VSeHJobWoaLln8K+KAYNVkuQvsAFh
I4oauGFb8OyUkiR3eAZrVJPz52MdOtiKowaQUJnLFM4NV7ZuzX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IZPHSmDdYxi4BqFtQBKLhuAxvSEwlNDs66XQLKf0eRJ
kw+16vpGkmi46XDzySYCIXaRZPJwDX4pmhwJa99F4b+AKlxVDDhWJ4Unh9aiouWewb8qBgxWSZK/wAaE
jShq4IZtwbNTSpLc4RmsUU3On4916GArjhpAQmUuUzg3XNm6Nc/VeSAbANaSRAEeRrKBPkcMBI11+STJ
Hik9ViMndxnrh2VZSBIFWJnAFkpjgsqcIkn2cE3+SDZwnbEfzSb/PB67y8sHVQN1mWfJ5DyaemJ4nO+U
k2fLtrVm+Kbu+AgDSN+2DtH0EyOl8/bRJs+WD6r2KAbSltVL04+PtjXFJpR/ROPJlbfL1oW+qFdM+Hai
gtKMDVdnF5VJY7GP0A8e58KnB/cHsoG0Xd9BaUZHO2PL4M73RTbg6no1SbLGO9veKDcm2KA/A8cpIYkK
cH5CTu6ZxX1JTZtNkpzgC9EVNYD0LesShUcC3M2FZG8VAzo7TpKckWmwKmUDL48d+wrVWU6Sf4Aj94CS
3OCfOgoLF5EkZ4RhOMt3xHPZBLxrJMk/wHX7gWwA+v5ZCk8amQZRKxsInHgQ1tbmkQTXPrZDTu4VFAze
Wle8miRR4EE0FhVAuRe+jsf7ZRPvHFFDkt+b7yTc+bpdI9aTMmL3Wg12v0ln5yG0GLgEiGu2AlgILALG
gAzI6Ref8T3GUYf6pUAcv+BVfdz27fg9OBN64KbUjYTL7AWIKcDdjqXBA2c48UogTq4D8RPCPx54G9oM
3EK/+IzvMW4Ai4GrgHgK4jy4j/AsyOlrGi4rDpoDRGM4CRJvvAsixGckxlA3F4jjkKMuzR9o2i+rSk09
0VK9rwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButtonAssProperties.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA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T9nMzExug8GwxbrJMOc5
dpRBhGgRquSABE0CJEn6gpL+REIO00gLyM5FCRukuh9pmZbaTdwNIuvNzp6FAInn34SKi79EDE0CkkGN
wbCGkr+BgH82f1VKAl5BRKCIL0O9c9TzqLTyHnN5fPflDvEQLYBGu3XM422HepD2xA2Uo+7JDqr7Gm3s
Rq4Mye2mda8bs7JWSILwsyyA50Mus/kz6pMnBgJ/04ztRPu4UNkDh7HW8C2+iPDM0rdQrdcvs5nWT0GA
zchdlvvwPDdRUPA2MgsnC+FLGioCdj4f9QzA7h8ZHyLbjtLx0j1I39/WGfWFSE5C3to5Ti8HIVDyOlmA
hX/GdLolijsxUtkDCGw3ZQ5DQK1pwzQtRfk823N2tUJARIRlr9IlMVIRYDNm7o2svTrHCgtkAX6Bb1K6
JEZKAkxcMxJROUG8E82+7/a3QEBnXt67wCk+8X8CYEGAc9xLm+xQFA/SunNod5fjsqwmbk4R8IPcOQrM
as3wWQRfZCn4q4o7PuYFlNPOxzMczf8cztckYjklrYhM9UYfjTBD6f4BKPlpCHAfP/4/Xc+rFHds+AOB
X2taehfu+mj2OhzhuhMn1tYauZe1er1YxW0soW6ribj11hLXKSXs1aV7cvRe4aR70mz2TwrmI+SLfyLo
Ws2gqc6hUS68ePOkX0f5XV1dSPA5cSURiXD0sL54fLYRtyslbPhRv4aI9uiH2Ur+WCYJBIzFONDp3gMs
6vig4xtOnwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButtonAssAttachments.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAUnSURBVFhH1VddbFRFFN5iA2gEyWLFdXfvzO5W1ywhEKOJ
mGitKKYm+BOtxvBQW9ru3ju73e02YAza9YHEP4zRKA+kShSEwjaKSCLRaI3if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G
EbhfLjgNdi5XKbIZoc7C2T9U4GK6VD69c/YcNQTe0y1OqIMCPDzjf0NgfAMSKCQSx6A9y2fcuaLi+Wrv
wp4wHeghZLSL+vEBim9A7HqXg/jUL34v3li7koxk2go8lbKsTKoZxs750kJvLwRZBIKGsPQwv3j5XANy
rfrFbxxH/RIQnI/rcL3r/7rhhmeS/4DH8w/FKsVhjsextgAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButtonNetflixQualityCheck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -775,7 +775,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
CAAAAk1TRnQBSQFMAgEBAgEAATwBKgE8ASoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAUQBKgFEASoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA