Commit 3211834
Fix resource leaks, save/copy path bugs, and tooltip/i18n gaps across simulators
Code fixes (with Crystallography/Crystallography.Controls submodule updates):
- Diffraction/Image simulators: consolidate the hand-rolled HDC->Metafile
save/copy scaffolding into ClipboardMetafileHelper.SaveOrCopyDrawingAsEnhMetafile,
dispose bitmaps/dialogs/streams, use persistent clipboard copies,
case-insensitive extension handling, and hoist loop-invariant path
computations in individual-save loops
- FormDiffractionSimulatorGeometry: centralize PseudoBitmap replacement
(dispose + OverlappedImage invalidation) in SetPseudoBitmap; read IPA
metadata via a single ImageIO.ReadImage pass; fail instead of reusing
stale images on unreadable/real-space files; use pixSizeY in the
detector pixel-size average; null-safe disposal in Designer Dispose
- FormDiffractionSimulatorCBED: remove a double Math.Acos on a value that
is already an angle (AngleResolution)
- Version/ProgramUpdates: culture-invariant version parsing
- release.yml: refuse to publish when an orphan tag points at a different
commit than the build
UI/i18n:
- Show dropdown menu-item tooltips (ShowItemToolTips) in FormMain,
FormDiffractionSimulator, FormImageSimulator, FormStructureViewer
- FormTrajectory: add poleFigureControl tooltip in all 11 languages
- FormStructureViewer: move the save-image ToolTipText to the actual
submenu item (saveImageToolStripMenuItem1) in all languages
- FormSpotIDV2: drop "(experimental)" from Global fit / Donut button
labels (kept in tooltips); keep action buttons on one row
- FormDiffractionSimulatorCBED: expand the CBED abbreviation in the
Simulate button tooltip (EN/JA)
- FormEBSD: English label for the PCHIP developer button
- FormPolycrystallineDiffractionSimulator: widen the Appearance group for
long localized labels
Docs:
- CODE_SIGNING.md / THIRD-PARTY-NOTICES.md: describe the active signing
scope (x64 MSI + x64 portable exe; Arm64 unsigned) as implemented
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b378bf3 commit 3211834
55 files changed
Lines changed: 274 additions & 174 deletions
File tree
- .github/workflows
- ReciPro
- DiffractionSimulator
- ImageSimulator
- PolycrystallineDiffraction
- SpotID
- StructureViewer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Submodule Crystallography.Controls updated 1 file
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2859 | 2859 | | |
2860 | 2860 | | |
2861 | 2861 | | |
2862 | | - | |
| 2862 | + | |
| 2863 | + | |
2863 | 2864 | | |
2864 | 2865 | | |
2865 | 2866 | | |
2866 | | - | |
| 2867 | + | |
2867 | 2868 | | |
2868 | | - | |
| 2869 | + | |
2869 | 2870 | | |
2870 | | - | |
2871 | | - | |
2872 | | - | |
2873 | | - | |
2874 | | - | |
2875 | | - | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
2876 | 2877 | | |
2877 | | - | |
2878 | | - | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
2879 | 2881 | | |
2880 | | - | |
2881 | | - | |
2882 | | - | |
2883 | | - | |
2884 | | - | |
2885 | | - | |
2886 | | - | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
2887 | 2890 | | |
2888 | 2891 | | |
2889 | 2892 | | |
2890 | 2893 | | |
2891 | | - | |
2892 | | - | |
2893 | | - | |
2894 | | - | |
2895 | | - | |
2896 | | - | |
2897 | | - | |
2898 | | - | |
2899 | | - | |
2900 | | - | |
2901 | | - | |
2902 | | - | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
2903 | 2898 | | |
2904 | 2899 | | |
2905 | 2900 | | |
2906 | 2901 | | |
2907 | | - | |
2908 | | - | |
2909 | | - | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
2910 | 2907 | | |
2911 | | - | |
| 2908 | + | |
| 2909 | + | |
2912 | 2910 | | |
2913 | | - | |
2914 | | - | |
2915 | | - | |
2916 | | - | |
2917 | | - | |
2918 | 2911 | | |
2919 | | - | |
2920 | | - | |
| 2912 | + | |
2921 | 2913 | | |
2922 | 2914 | | |
2923 | 2915 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
2873 | | - | |
2874 | | - | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
2875 | 2876 | | |
2876 | 2877 | | |
2877 | 2878 | | |
| |||
8602 | 8603 | | |
8603 | 8604 | | |
8604 | 8605 | | |
8605 | | - | |
| 8606 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
2062 | 2063 | | |
2063 | 2064 | | |
2064 | 2065 | | |
2065 | | - | |
| 2066 | + | |
0 commit comments