mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 10:03:54 +00:00
GUI: Separate out SCM fields for MAXICODE (Ticket #212)
vector.c: Enforce minimum scale 0.1 and allow down to 0.1 in GUI
This commit is contained in:
@@ -208,6 +208,10 @@ static void vector_scale(struct zint_symbol *symbol, int file_type) {
|
||||
struct zint_vector_string *string;
|
||||
float scale = symbol->scale * 2.0f;
|
||||
|
||||
if (scale < 0.2f) { // Minimum vector scale 0.1
|
||||
scale = 0.2f;
|
||||
}
|
||||
|
||||
if ((file_type == OUT_EMF_FILE) && (symbol->symbology == BARCODE_MAXICODE)) {
|
||||
// Increase size to overcome limitations in EMF file format
|
||||
scale *= 20;
|
||||
|
||||
Reference in New Issue
Block a user