mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Prevent crash on 0 channel
This commit is contained in:
parent
6944586e23
commit
9c5ec7df3c
1 changed files with 5 additions and 2 deletions
|
|
@ -54,8 +54,11 @@ namespace satdump
|
|||
}
|
||||
scale_view.update(scale_image);
|
||||
scale_view.allow_zoom_and_move = false;
|
||||
correction_factors = generate_horizontal_corr_lut(*products, products->images[0].image.width());
|
||||
correction_factors.push_back(products->images[0].image.width());
|
||||
if (products->images.size() > 0)
|
||||
{
|
||||
correction_factors = generate_horizontal_corr_lut(*products, products->images[0].image.width());
|
||||
correction_factors.push_back(products->images[0].image.width());
|
||||
}
|
||||
|
||||
// font
|
||||
current_image.init_font(resources::getResourcePath("fonts/font.ttf"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue