1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200
|
2024-02-11 Morten Welinder <terra@gnome.org>
* Release 1.12.57
2024-02-11 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_range_set_expr_cb): Also redraw. Fixes #755.
2023-12-05 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_filter_field): Fix reversed sense
on several fields.
* src/xml-sax-read.c (xml_sax_filter_condition): Fix badly broken
reading of auto-filters.
* src/sheet-filter.c (gnm_filter_condition_new_bucket): Cap n,
so crazy numbers don't cause trouble down the line.
(gnm_filter_combo_apply): Fix problem with empty range; fix
gnm_float/double mixing.
2023-11-16 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_set_action_feedback): New function to
suppress toggle action signalling while we're updating the ui.
2023-11-02 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2023-11-02 Morten Welinder <terra@gnome.org>
* Release 1.12.56
2023-09-24 Morten Welinder <terra@gnome.org>
* src/dependent.h (GnmDependentClass): Add q_array_context since
certain graph deps are computed in array context.
* src/dependent.c (dependent_link): Observe q_array_context.
(link_unlink_expr_dep): Don't clear array context for operators.
2023-02-02 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2023-02-02 Morten Welinder <terra@gnome.org>
* Release 1.12.55
2023-01-19 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2023-01-19 Morten Welinder <terra@gnome.org>
* Release 1.12.54
2023-01-15 Morten Welinder <terra@gnome.org>
* src/sheet-object.c (sheet_objects_clear): Freeze the object
views, just in case there are a lot of objects to clear.
* src/gnm-pane.c (cb_pane_init_objs): Freeze panes while creating
views -- there might be a lot.
2022-12-01 Morten Welinder <terra@gnome.org>
* src/value.c (value_get_as_gstring): When rendering shortest,
round halfways away-from-zero, not to-even.
* src/complex.c (gnm_complex_to_string): Round
away-away-from-zero.
2022-10-29 Morten Welinder <terra@gnome.org>
* src/sheet-conditions.c (update_group): Fix problem during sheet
finalize.
* src/sheet.c (sheet_destroy_contents): Set cell_hash to NULL
after we free it for easier debug.
2022-10-08 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Use basename of argv[0],
except when help is requested. See #677 for details.
2022-09-17 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2022-09-17 Morten Welinder <terra@gnome.org>
* Release 1.12.53
2022-08-29 Morten Welinder <terra@gnome.org>
* src/value.c (value_new_float): Avoid -0.
2022-08-24 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_keyed_dialog): Simplify signal handling.
Fixes #657, I hope.
2022-08-17 Morten Welinder <terra@gnome.org>
* src/gutils.c (gnm_utf8_strto): Handle near-denormal case.
2022-06-06 Morten Welinder <terra@gnome.org>
* src/complex.c (gnm_complex_to_string): Use go_dtoa as building
block. Ensure uppercase "E" in exponential forms.
2022-05-05 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_cell_set_array_expr): Fix inter-process
array non-corner element problem. [Part of #634]
2022-04-18 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2022-04-18 Morten Welinder <terra@gnome.org>
* Release 1.12.52
2022-04-03 Morten Welinder <terra@gnome.org>
* src/sheet.c (cb_max_cell_width): Be less aggressive in column
widening. #621.
2022-03-16 Morten Welinder <terra@gnome.org>
* src/sheet.c (gnm_sheet_constructed): When rescaling row height
due to font size, also increase column width.
2022-03-06 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_colrow_info): Fix last fix. I
accidentally made the run-length encoding break off too early.
2022-03-02 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_colrow_info): Fix problem writing
identical columns separated by pristine default columns. Fixes
#619.
2022-02-26 Morten Welinder <terra@gnome.org>
* src/expr-name.c (expr_name_set_expr): Plug leak.
2022-01-21 Morten Welinder <terra@gnome.org>
* src/wbc-gtk-actions.c: In vertical toolbar mode, show a combo
instead of individual horizontal alignment entries.
2022-01-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2022-01-20 Morten Welinder <terra@gnome.org>
* Release 1.12.51
2022-01-19 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_linked_sheet_changed): Add missing ref.
Fixes #597.
(gnm_style_merge): Mark elements from overlay as set in base.
2022-01-09 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (gnm_rendered_value_new): Work around Pango
bug 653, see Gnumeric bug 607. Pango is fixing the issue, but we
need to deal with the situation. In the long run, something based
on pango_attr_list_change should probably be used.
2021-12-26 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_cell_set_array_expr): Take position as
argument; fix non-cell case.
(xml_sax_cell_content): Fix crash on inter-gnumeric array formula
paste. [#606]
2021-10-04 Morten Welinder <terra@gnome.org>
* src/dependent.c (link_unlink_funcall): Ignore excess arguments.
2021-09-25 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_values): make sure that the
GO_DATA_HAS_VALUE flag is always set when needed. Fixes #595.
2021-09-18 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_get_value): fix error bars when data
are in a multi-column array. [#594]
2021-06-10 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2021-06-10 Morten Welinder <terra@gnome.org>
* Release 1.12.50
2021-05-05 Morten Welinder <terra@gnome.org>
* src/workbook.c (workbook_cells): Avoid undefined behaviour.
2021-05-04 Morten Welinder <terra@gnome.org>
* src/rangefunc.c (gnm_range_adtest): Avoid integer overflow.
2021-03-29 Morten Welinder <terra@gnome.org>
* src/hlink.h (GNM_HLINK_EXTERNAL_TYPE): Add checker macro.
2021-03-19 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_sort_undo): Paste cell comments too.
2021-03-14 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2021-03-14 Morten Welinder <terra@gnome.org>
* Release 1.12.49
2021-02-22 Jean Brefort <jean.brefort@normalesup.org>
reviewed by: <delete if not using a buddy>
* src/sheet-object-graph.c (sog_update_graph_size),
(gnm_sog_bounds_changed):
2021-02-21 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-graph.c (gnm_sog_bounds_changed): don't take anchors
into account when updating the graph inside a graph sheet. [#565]
2021-02-14 Morten Welinder <terra@gnome.org>
* src/cell.c (gnm_cell_get_effective_style): New function to
resolve conditional styling.
* src/rendered-value.c (gnm_rendered_value_new): Use
gnm_cell_get_effective_style instead of doing it by hand.
2021-01-30 Morten Welinder <terra@gnome.org>
* autogen.sh: check that YELP_HELP_INIT has been expanded.
2021-01-28 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (gnm_sog_bounds_changed): Make sure to
tell the graph about the new size.
(gnm_sog_set_sheet): Tell the graph object about the initial size.
(sheet_object_graph_set_gog): Ditto.
* src/number-match.c (format_match_decimal_number_with_locale): If
the thousands separator is a space character, allow plain space
also.
2021-01-19 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_linked_sheet_changed): Make sure to tell
the GnmStyleConditions what is going on. Fixes #547, item 3.
2020-12-19 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_range_unrender): New function.
* src/sheet-conditions.c (csgd_changed): Force rerendering of
cells.
(collect_group_deps_rr): Improve the deduced dependency range for
semi-absolute references.
2020-12-18 Morten Welinder <terra@gnome.org>
* src/sheet-conditions.c (update_group): Fix eval pos -- it's
different for each range, even if we hang everything on the same
dep. Don't use a set for dependency -- that only works right in
array mode -- but use a call to SUM instead.
2020-10-17 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-graph.c (gnm_sog_bounds_changed): fix graph size issue
when the graph is in its own sheet. [#516]
2020-10-15 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_sheet): Don't try to parse entries
with single quote or equal sign as numbers; use stf_cell_set_text.
(stf_parse_options_guess_formats): Skip entries with '=' also.
2020-10-12 Morten Welinder <terra@gnome.org>
* src/workbook-priv.h: Introspection doesn't like empty structs so
throw it a bone.
* src/stf-parse.c (stf_parse_options_guess_csv): Don't get
confused over quotes in quoted text. Fixes #537.
2020-10-04 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_options_guess_csv): Don't trim
spaces, see https://tools.ietf.org/html/rfc4180#section-2
* src/workbook-view.c (workbook_view_save_as): If we don't get a
modtime from the url, don't try to do anything with in. Notably
happens with fd://1
2020-08-12 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2020-08-12 Morten Welinder <terra@gnome.org>
* Release 1.12.48
2020-08-08 Morten Welinder <terra@gnome.org>
* src/print-info.c (gnm_print_info_load_defaults): Don't return a
value.
2020-07-16 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_dialog_setup_destroy_handlers): Fix
potential 64-bit problem.
(cb_gnm_dialog_setup_destroy_handlers): Ditto.
2020-07-12 Morten Welinder <terra@gnome.org>
* src/sstest.c (test_recalc): New test for dependency tracking.
2020-07-07 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_queue_redraw_range): Ignore requests during
loading of a file.
2020-07-06 Morten Welinder <terra@gnome.org>
* src/dependent.c (bucket_start_row): Improve performance.
2020-07-04 Morten Welinder <terra@gnome.org>
* src/workbook.c (workbook_get_sheet_size): When sheets are not
uniform size, return largest possible.
2020-06-29 Jean Brefort <jean.brefort@normalesup.org>
* configure.ac: port to Python3. [#419]
2020-06-27 Morten Welinder <terra@gnome.org>
* src/dependent.c (link_unlink_cellrange_dep): Take a GnmRange,
not a DependencyRange.
2020-06-14 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (merge): Trigger expression sharing for merged
workbook.
2020-06-12 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_cell): Relax sanity check a bit.
(xml_sax_cell_content): Fix sanity check for position. Only the
relative position matters. Fixes #497.
2020-06-11 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (merge_single): Also merge document-level
images. Fixes #496.
2020-06-04 Morten Welinder <terra@gnome.org>
* src/sheet-filter.c (gnm_filter_remove): Remove fields in
opposite order of how we add them.
* src/sheet-object.c (sheet_object_set_sheet): Drop return value
that nobody looks at.
2020-06-04 Morten Welinder <terra@gnome.org>
* src/sheet-private.h (_SheetPrivate): Add objects_changed flag
for updating sheet objects extents.
* src/sheet-object.c: Don't update sheet object extents right now,
just set the flag.
* src/sheet.c (sheet_update_only_grid): Handle objects_changed.
2020-06-03 Morten Welinder <terra@gnome.org>
* src/sheet-object.c (sheet_object_view_get_item): New function
localizing our access to GocGroup::children
2020-05-31 Morten Welinder <terra@gnome.org>
* src/sheet-filter.c (gnm_filter_new): New argument attach. All
callers changed.
* src/commands.c (cmd_autofilter_add_remove): Don't
attach-remove-attach.
* src/sheet-object.c (cb_create_views): Maintain just one idle
source to handle view creating for all objects that need it.
2020-05-29 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_top_multiple_as_string): New function.
* src/graph.c (gnm_go_data_serialize): Use
gnm_expr_top_multiple_as_string for vectors.
(gnm_go_data_unserialize): Handle "(1,2)" as "1,2" for vectors
because we have managed to create files with the former.
2020-05-27 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object.c (sheet_object_set_print_flag): protect
against a NULL object.
2020-05-09 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2020-05-09 Morten Welinder <terra@gnome.org>
* Release 1.12.47
2020-05-06 Jean Brefort <jean.brefort@normalesup.org>
* component/Gnumeric-embed.xml.in: fix the menus and toolbars.
* component/gnumeric.c (go_gnm_component_edit): ditto.
* src/wbc-gtk-actions.c (component_changed_cb): don't lose the
component before using it.
* src/wbc-gtk-impl.h:fix the menus and toolbars.
* src/wbc-gtk.c (set_uifilename), (wbc_gtk_init): ditto.
2020-05-04 Morten Welinder <terra@gnome.org>
* src/sheet-object.c (sheet_object_get_print_flag): New function.
2020-04-29 Morten Welinder <terra@gnome.org>
* src/sheet.c (cb_pending_redraw_handler): Do some cheap merging
of ranges before redrawing. That should away some degenerate
cases.
(sheet_queue_redraw_range): Switch to using array for ranges.
* src/ssconvert.c (convert): Infer image format from filename for
object export just as for regular conversion.
2020-04-26 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_clear_region): Fix type of clear_flags.
(gnm_sheet_finalize): Free the list of pending redraws, just in
case.
* src/dependent.c (style_dep_unrender): Queue the redraw instead
of doing it.
* src/sheet.c (sheet_redraw_region): We don't need the redraw-all
hack here. It's also in sc_redraw_range.
(sheet_queue_redraw_range): New function for queueing redraws that
we cannot actually handle happening right now.
2020-04-26 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-component.c (sheet_object_component_new):
really fix the component reference count issue.
* src/wbc-gtk-actions.c: ditto.
2020-04-25 Jean Brefort <jean.brefort@normalesup.org>
* component/gnumeric.c (go_gnm_component_update_data),
(go_gnm_component_set_data), (go_gnm_component_render): fix crash when the
embedded spreadsheet is invalid. [#481]
* src/sheet-object-component.c (soc_xml_finish),
(sheet_object_component_new): fix object reference count.
2020-04-24 Morten Welinder <terra@gnome.org>
* src/dependent.c (sheet_region_queue_recalc): Fix problem with
non-cell deps. See #480.
2020-04-21 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (export_objects_for_sheet): New function
extracted from do_split_save.
2020-04-20 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (resolve_template): Expand %o to sheet object
name, if present, or the empty string.
2020-04-19 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (list_image_formats): New function, handling new
option --list-image-formats.
(do_split_save): When exporting graphs, sort top-to-bottom,
left-to-right.
2020-04-13 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (gnm_sog_write_image): Fix criticals.
* src/ssconvert.c (do_split_save): Fix double-free.
2020-04-12 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (clipboard_export): Avoid critical.
(convert): Avoid critical.
* src/workbook-view.c (workbook_view_new_from_input): Spell out
which file we complain over. See #472.
2020-03-03 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (apply_updates): Move NULL check into here so
all callers are covered.
2020-02-24 Jean Brefort <jean.brefort@normalesup.org>
* src/ssconvert.c (convert): don't crash if ssconvert_set_cells is
NULL.
2019-11-12 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_restore_window_geometry): Something changed
in Gtk+ in the past decade. Attach to size-allocate instead of
unrealize.
2019-11-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2019-11-06 Morten Welinder <terra@gnome.org>
* Release 1.12.46
2019-11-03 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (do_split_save): Extend to create images from
each graph. Code adapted from Shlomi Fish code in #410.
* src/sheet-object.c (sheet_object_write_image): Document. Add
preconditions.
(sheet_object_save_as_image): New function.
2019-11-02 Morten Welinder <terra@gnome.org>
* src/gutils.c (gnm_file_saver_common_export_option): Reorganize a
bit to silence warning.
2019-10-31 Morten Welinder <terra@gnome.org>
* src/cell.c (gnm_cell_get_text_for_editing): Avoid excess
precision when editing percentages. [#413]
* src/criteria.c (parse_criteria): Be careful about critiria that
are either empty values or empty strings. The semantics are
special. [#423] Fix initial ref-count problem.
2019-09-19 Jean Brefort <jean.brefort@normalesup.org>
* src/cell-draw.c (cell_calc_layout): implement wrapping of rotated text.
Fixes #394.
2019-09-16 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_get_str): load strings from arrays.
Fixes #416.
2019-06-27 Morten Welinder <terra@gnome.org>
* src/clipboard.c (cellregion_invalidate_sheet): Also invalidate
conditional formats that reference the sheet.
2019-06-20 Morten Welinder <terra@gnome.org>
* configure.ac (lgamma_r): Check if we must prototype lgamma_r
ourselves. Fixes #402.
* src/numbers.h: Do so, if needed.
2019-06-09 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_options_guess_formats): If we cannot
choose between decimal comma and decimal point, but have seen only
one then assume it is a decimal separator.
(do_check_date): Reject date unless guessed format has all three
of year, month, and day. [#401]
2019-05-22 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2019-05-20 Morten Welinder <terra@gnome.org>
* Release 1.12.45
2019-04-09 Morten Welinder <terra@gnome.org>
* src/gutils.c (gnm_file_saver_common_export_option): Allow option
"active-sheet=" to select the active sheet.
* src/stf-parse.c (stf_parse_options_guess_csv): Avoid guessing
insane separators. Fixes #397.
2019-01-15 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_lambert_w): Avoid static for something that
formally isn't a compile-time constant. [#378]
2018-11-24 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-11-24 Morten Welinder <terra@gnome.org>
* Release 1.12.44
2018-11-18 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_agm): Short-circuit the a==b case early. We
only need it for +inf, but it's valid and meaningful for all values.
2018-11-17 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_create_popup_menu): Use a
GtkSeparatorMenuItem instead of an empty item.
* src/func.c (gnm_func_set_varargs): Correctly signal a vararg
function by setting max arguments to maxint.
2018-11-16 Morten Welinder <terra@gnome.org>
* src/commands.c (get_new_objects): unref the unaffected objects.
2018-10-23 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/gui-util.c (gnm_get_link_color): make conditional on definition
of GTK_STATE_FLAG_LINK
2018-10-13 Morten Welinder <terra@gnome.org>
* src/dependent.c (workbook_recalc): Evaluate cells before other
deps.
* src/style-conditions.c (gnm_style_conditions_eval): Copy the
cell value; it may change due to recalc.
2018-10-04 Morten Welinder <terra@gnome.org>
* src/sheet-filter.c (gnm_sheet_filter_insdel_colrow): Shorten
filter if it would otherwise go beyond the end of the sheet.
Fixes #359.
2018-10-02 Morten Welinder <terra@gnome.org>
* src/sheet-view.c (sv_real_dispose): Fix typo.
2018-10-01 Morten Welinder <terra@gnome.org>
* src/workbook-view.c (wb_view_set_property): Fix setting of
auto-func. [#357]
2018-08-19 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-08-19 Morten Welinder <terra@gnome.org>
* Release 1.12.43
2018-08-09 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-08-09 Morten Welinder <terra@gnome.org>
* Release 1.12.42
2018-07-12 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_get_cond_style): Update the cached
styles as needed. Fixes #343.
2018-06-08 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (gnm_cellregion_to_xml): Impose ordering on
cells.
2018-05-22 Morten Welinder <terra@gnome.org>
* Test commit after migration.
2018-05-13 Morten Welinder <terra@gnome.org>
* src/ssconvert.c: i18n fixes.
2018-05-10 Morten Welinder <terra@gnome.org>
* configure.ac (LIBS): Clear out obsolete pango check.
2018-05-07 Morten Welinder <terra@gnome.org>
* src/gnm-pane.c (gnm_pane_key_mode_sheet): Plug leaks.
2018-05-07 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-05-07 Morten Welinder <terra@gnome.org>
* Release 1.12.41
2018-05-07 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (gnm_rendered_value_new): When auto-fitting
a column, request no more room than for 15 significant digits.
Fixes #754391. You can still get the maximum precision by
widening the column.
* src/wbc-gtk.c (wbc_gtk_init): Use a resource for the default ui
definition.
(wbcg_auto_expr_value_changed): Limit the width of numbers
formatted as General to something independent of function name.
This avoids the 10.10000...002 situation unless maximum precision
is requested.
2018-05-06 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_area_set_array_expr): The clipboard now
takes care of restoring row heights and column widths.
(cmd_paste_copy_impl): After the initial "do", always restore
column widths and row heights.
2018-05-04 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (toolbar_context_menu): Use a proper separator
menu item.
2018-05-03 Morten Welinder <terra@gnome.org>
* src/commands.c (get_new_objects): Change from transfer-container
to transfer-full. Otherwise a deleted object can shadow a new
one. (Never observed.)
2018-04-30 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbc_gtk_reload_recent_file_menu): Make full
history item insensitive if we have to history.
2018-04-29 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-04-29 Morten Welinder <terra@gnome.org>
* Release 1.12.40
2018-04-26 Morten Welinder <terra@gnome.org>
* src/colrow.c (col_row_collection_foreach): move to...
* src/sheet.c (sheet_colrow_foreach): ...here. Allow -1 to mean
last column or row.
(sheet_foreach_cell_in_range): Change to take a range.
(sheet_foreach_cell_in_region): Preserve the old
sheet_foreach_cell_in_range api. Most callers changed. Allow -1
to mean last column or row.
2018-04-25 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_cell_content): Read shared array
expressions as we used to, but immediately unshare. I had an old
file with such a thing and it not supposed to happen. That
formula would likely have been created in early 2007.
2018-04-24 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_paste_copy_impl): Simplify now that
clipboard handles colrow sizes.
2018-04-21 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (gnm_soi_write_image): If the format
doesn't match what is requested, convert.
2018-04-20 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (merge_single): Avoid a
hash-changed-while-iterating problem. [#795408]
* src/xml-sax-write.c (xml_write_cell_and_position): In the
clipboard case, write result values too.
* src/xml-sax-read.c (xml_sax_cell_content): Rework this rat's
nest of conditionals. Accept values for expressions.
2018-04-18 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_get_cond_style): Flip reversed
pre-condition.
* src/gui-clipboard.c (gnm_x_claim_clipboard): Offer biff8,
including LO's weird name for that. The don't seem to take
"Biff8" and they don't seem to take Citrix' variant either.
2018-04-16 Morten Welinder <terra@gnome.org>
* src/gui-clipboard.c (gnm_x_claim_clipboard): Plug leak. Debug
improvements.
(table_cellregion_read): Improve paste-range heuristic for
clipboard formats that lack that information, notably
LibreOffice's.
* src/workbook-view.c (get_uri_modtime): Fix criticals on paste
from LibreOffice. (Which sends a zipfile over the clipboard.)
2018-04-14 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_count_args): Rename from
function_def_count_args for introspection.
(gnm_func_get_arg_type): Rename from function_def_get_arg_type
for introspection.
(gnm_func_get_arg_type_sring): Rename from
function_def_get_arg_type_string for introspection.
* src/workbook-view.c (workbook_view_save_as): Rename from
wb_view_save_as for introspection.
(workbook_view_save): Rename from wb_view_save for introspection.
2018-04-13 Morten Welinder <terra@gnome.org>
* src/workbook-view.c (workbook_view_save_to_uri): Renamed from
wb_view_save_to_uri for introspection.
(workbook_view_save_to_output): Renamed from
wb_view_save_to_output for introspection.
* src/style-color.c (gnm_style_color_get_type): Duplicate of
gnm_color_get_type, more or less.
* src/validation.c (gnm_validation_ref): Must return a value to be
used as a boxed copy function.
* src/expr.c (gnm_expr_top_ref): Must return a value to be used
as a boxed copy function.
* src/expr-name.c (expr_name_ref): Must return a value to be used
as a boxed copy function.
* src/mstyle.c (gnm_style_ref): Must return a value to be used
as a boxed copy function.
* src/clipboard.c (cellregion_ref): Must return a value to be used
as a boxed copy function.
* src/criteria.c (gnm_criteria_unref): Rename from free_criteria.
* src/mstyle.c: Hide internals.
src/gnm-style-impl.h: Remove.
* src/cell.c (gnm_cell_set_format): Remove. Unused and badly
named.
2018-04-12 Morten Welinder <terra@gnome.org>
* src/sheet-merge.c (gnm_sheet_merge_remove): Drop unused command
context argument. All callers changed.
2018-04-11 Morten Welinder <terra@gnome.org>
* src/workbook.c: Make Workbook a more proper object by adding a
constructor to setup the object correctly. Introspection fixes.
(workbook_view_class_init): Make this a more proper object by
adding a constructor and init function to setup the object
correctly.
2018-04-11 Morten Welinder <terra@gnome.org>
* src/workbook-view.c: Introspection fixes, mostly from Dean
McCarron.
src/workbook-control.c: Ditto.
src/wbc-gtk.c: Ditto.
2018-03-25 Morten Welinder <terra@gnome.org>
* src/workbook.c (workbook_set_last_export_uri): Constify
argument. Callers fixed.
2018-03-23 Morten Welinder <terra@gnome.org>
* src/main-application.c (cpu_sanity_check): New function.
2018-03-13 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-03-13 Morten Welinder <terra@gnome.org>
* Release 1.12.39
2018-01-17 Morten Welinder <terra@gnome.org>
* src/sstest.c (function_dump_defs): Drop internal function TABLE
as well as demo function ATL_LAST.
2018-01-11 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_scrollbar_config_real): Be careful
not to trigger an update storm when nothing changes. Fixes
#792417.
2018-01-01 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_simplify_if): Remove non-working,
non-reachable code relating to true() and false() conditions.
2017-12-30 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_top_get_array_corner): Remove. All callers
changed.
(gnm_expr_top_get_array_size, gnm_expr_top_get_array_value)
(gnm_expr_top_get_array_expr): New functions.
* src/cell.c (gnm_cell_is_array_corner): Remove. All callers
changed.
2017-12-29 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (diff_names): Fix checks for inserted or removed
name. #792038.
2017-12-28 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-12-28 Morten Welinder <terra@gnome.org>
* Release 1.12.38
2017-12-25 Morten Welinder <terra@gnome.org>
* src/gnm-plugin.c: Avoid using "textdomain" as a variable.
* src/func-builtin.c (func_builtin_init): Ditto.
2017-12-23 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_sheet): Fix crash on text important.
2017-12-04 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (GnmDiffState): Store old_sheet and new_sheet here
instead of passing them all over the place.
(diff): Compare names too.
2017-12-03 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (SSDIFF_DTD): Add proper xmlns definition.
(diff): Missing or extra sheet counts as a difference.
* src/mstyle.c (gnm_style_find_differences): Don't crash when
hlink/validation/inputmsg/conditions is NULL in one and not the other.
* src/ssdiff.c (diff_sheets_colrow): New function to compare
row/column sizes.
(highlight_cell_changed): Survive missing cell.
2017-12-01 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-12-01 Morten Welinder <terra@gnome.org>
* Release 1.12.37
2017-11-30 Morten Welinder <terra@gnome.org>
* src/print-cell.c (gnm_gtk_print_cell_range): Eliminate g_alloca
usage.
* src/parse-util.c (wbref_parse): Ditto.
* src/preview-grid.c (preview_grid_draw_region): Ditto.
* src/item-grid.c (item_grid_draw_region): Ditto.
* src/parser.y (yylex): Ditto.
* src/criteria.c (parse_database_criteria): Ditto.
* src/sheet-filter.c (gnm_filter_combo_apply): Use heap, not
stack, allocation.
* src/sheet-style.c (sheet_style_find_conflicts): Use heap, not
stack, allocation.
2017-11-29 Morten Welinder <terra@gnome.org>
* src/sstest.c (enumerate_functions): Make sure function is loaded.
* src/func-builtin.c (help_table): Add help text for TABLE.
* src/func.c (gnm_func_enumerate): Introspection annotation.
* src/sstest.c (function_dump_defs): Move from func.c with all
support code.
(gnm_func_sanity_check): Ditto.
* src/libgnumeric.c (gnm_dump_func_defs): Not needed anymore.
* src/main-application.c (pathetic_qt_workaround): Not needed
anymore.
* (gnumeric-object-combo.png): redo based on list combo. This avoids
looking strange when insensitive and also is a consistent size.
2017-11-18 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-11-18 Morten Welinder <terra@gnome.org>
* Release 1.12.36
2017-10-29 Jean Brefort <jean.brefort@normalesup.org>
* src/gnumeric.css: add grid:selected back-color.
* src/item-grid.c (item_grid_draw_region): fix background of multiple
selection. [#789411]
2017-10-23 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_convert_markup_to_pango): Avoid dead kitten
criticals.
2017-07-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-07-06 Morten Welinder <terra@gnome.org>
* Release 1.12.35
2017-06-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c
(sheet_widget_slider_horizontal_draw_cairo): use narrower slider
button
2017-05-18 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (hankel1_A1): Use also libc's jn for smallish
integer orders.
(jy_via_j_series): Rename from y_via_j_series and supply both J
and Y results. Use the full J result accuracy.
(gnm_bessel_phi): Improve divergence check.
2017-05-16 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (debye_33): Handle near-overflow better.
(gnm_bessel_j, gnm_bessel_y): Use modulus/phase method when
appropriate.
* src/gutils.c (gnm_utf8_strto): Handle denormals better.
* src/value.c (value_new_from_string): Handle denormals betters.
2017-04-05 Morten Welinder <terra@gnome.org>
* src/sf-trig.c (gnm_reduce_pi): Rename from reduce_pi_half.
Generalize to Pi/2^e and make public.
2017-03-28 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (y_via_j_series): Use gnm_yn if we can.
(hankel1_A1): Use gnm_yn if we can. Near integer order, center
around the integer with odd count when we can.
2017-03-21 Morten Welinder <terra@gnome.org>
* src/sstest.c (rand_fractile_test): Allow 4*sqrt(expected)
deviation for each bin.
(test_random_randchisq, test_random_randtdist)
(test_random_randfdist): Don't allow df=0.
(test_random_randbeta): Don't floor the parameters thus avoiding
zero.
2017-03-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-03-20 Morten Welinder <terra@gnome.org>
* Release 1.12.34
2017-03-17 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_init_size): Don't hand-create a
bogus GnmColor here. The fake object prevents GnmColor equality
from working which in turn prevents GnmBorder equality from
working.
* src/style-color.c (gnm_color_make): Rename from
gnm_color_new_uninterned and handle caching here.
(gnm_color_new_auto): New function.
* src/ssdiff.c (main): Exit 2 on error, 1 of diffs, 0 if no diff.
(compare_corresponding_cells): Fall back to string comparison.
References like Sheet1!A1 should match even if they, obviously,
refer to sheets in different workbooks.
* src/style-conditions.c (gnm_style_conditions_equal): Add new
relax_sheet argument.
* src/validation.c (gnm_validation_equal): New function.
* src/mstyle.c (gnm_style_find_differences): New function.
* src/ssdiff.c (xml_style_changed): Use
gnm_style_find_differences.
* src/ssdiff.c (cb_diff_sheets_styles_2): Use relaxed
gnm_style_find_differences, not gnm_style_equal.
* src/hlink.c (gnm_hlink_equal): New function.
2017-03-13 Morten Welinder <terra@gnome.org>
* src/hlink.c (gnm_hlink_cur_wb_set_target): Improve parsing of
inter-sheet local name references.
2017-03-10 Morten Welinder <terra@gnome.org>
* src/hlink.c (gnm_hlink_get_name_target)
(gnm_hlink_get_range_target): New functions.
(gnm_hlink_cur_wb_activate): Use gnm_hlink_get_range_target.
2017-03-07 Morten Welinder <terra@gnome.org>
* src/parser.y (parser_simple_name): Extract from
parser_simple_val_or_name. Extend to handle explicit sheet.
("sheetref STRING"): Ise parser_simple_name.
2017-03-06 Morten Welinder <terra@gnome.org>
* src/expr-name.c (expr_name_add): Plug leak.
2017-03-05 Morten Welinder <terra@gnome.org>
* src/hlink.c (GnmHLinkCurWB): Store location as dependent.
(gnm_hlink_cur_wb_activate): Move string parsing from here...
(gnm_hlink_cur_wb_set_target): ...to here. Check name first as
value_new_cellrange_str will resolve a name.
* src/mstyle.c (gnm_style_linked_sheet_changed): Handle changed
sheet for hlinks too.
* src/hlink.c (gnm_hlink_new, gnm_hlink_dup, gnm_hlink_get_sheet)
(gnm_hlink_set_sheet): New functions.
2017-01-30 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-01-30 Morten Welinder <terra@gnome.org>
* Release 1.12.33
2017-01-29 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_equal): New function.
(gnm_style_conditions_equal): ...split out from here.
2017-01-25 Morten Welinder <terra@gnome.org>
* src/mstyle.c (ELEM_IS_EQ): Fix last fix.
2017-01-22 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_cell_set_text): Don't parse "=..." as
expression for text formatted cells.
(stf_parse_sheet): Don't try number parsing for text formatted
columns. Fixes #777543.
2017-01-22 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (cb_assign_string), (gnm_go_data_vector_get_str): use cell
format when generating the string. [#777338]
2017-01-19 Morten Welinder <terra@gnome.org>
* src/mstyle.c (ELEM_IS_EQ): Don't compare conditions by pointer.
* src/style-conditions.c (gnm_style_conditions_equal): New
function.
2016-12-08 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_linear_solve): Use proper matrix type. All
callers changed.
(gnm_linear_solve_multiple): Ditto.
2016-10-02 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Don't pretend the
g_mem_set_vtable stuff actually works anymore.
2016-08-21 Morten Welinder <terra@gnome.org>
* src/sstest.c (options): Add --fast option.
* src/value.c (value_get_as_gstring): Let a negative
decimal_digits mean "shortest round-tripping string".
2016-08-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-08-20 Morten Welinder <terra@gnome.org>
* Release 1.12.32
2016-08-08 Morten Welinder <terra@gnome.org>
* src/criteria.c (criteria_inspect_values): Add flag for string
coercion. Only the equality test wants that.
* src/value.c (criteria_inspect_values): Floats don't match
errors.
2016-08-04 Morten Welinder <terra@gnome.org>
* src/rangefunc-strings.c (range_concatenate): Add (unused) user
pointer.
* src/collect.c (string_range_function): Add user pointer. Caller
changed.
2016-06-29 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-06-29 Morten Welinder <terra@gnome.org>
* Release 1.12.31
2016-06-29 Morten Welinder <terra@gnome.org>
* src/parse-util.c (std_expr_name_handler): Fix workbook confusion
related to sheet-local names. [#768164]
2016-06-28 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_options_guess_formats): Handle lines
of different lengths.
2016-06-21 Morten Welinder <terra@gnome.org>
* src/value.c (criteria_test_greater_or_equal): Use case-folding
comparisons for strings.
(parse_criteria, parse_criteria_range): Add argument controlling
whether to anchor matching at end of string.
(parse_database_criteria): Don't anchor here.
2016-06-17 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-06-17 Morten Welinder <terra@gnome.org>
* Release 1.12.30
2016-06-17 Morten Welinder <terra@gnome.org>
* src/value.c (parse_criteria): Anchor matches at the beginning,
but not at the end.
2016-06-11 Morten Welinder <terra@gnome.org>
* src/value.c (find_rows_that_match): Fix blank handling.
(criteria_test_unequal): Wrong type means unequal.
(criteria_test_match): Only match strings.
(parse_criteria): Don't anchor matches. This is the right thing
to do for DSUM and friends. Hopefully this doesn't break anything
else.
(criteria_inspect_values): Strings are incompatible with
non-strings.
(criteria_test_less, criteria_test_less_or_equal)
(criteria_test_greater, criteria_test_greater_or_equal): handle
strings.
2016-05-19 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_options_guess_formats): Separate
decimal counts for the hypothetical comma and point choices.
2016-05-10 Morten Welinder <terra@gnome.org>
* src/stf-parse.h (struct StfParseOptions_t): Remove unused struct
members. Doc fix.
2016-05-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-05-06 Morten Welinder <terra@gnome.org>
* Release 1.12.29
2016-04-29 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_style_context_get_color): Fix function
wrapping gtk_style_context_get_color which changed API.
2016-04-24 Morten Welinder <terra@gnome.org>
* src/value-sheet.c (value_area_get_x_y): Use
gnm_rangeref_normalize. Do full wrap-around.
2016-04-24 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_matrix_load_values): fix array
reading. [#765483]
2016-04-17 Jean Brefort <jean.brefort@normalesup.org>
* configure.ac: protect against pxlib weirdness.
2016-04-17 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_len): return a nul length if the
value is an error.
2016-03-22 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-03-22 Morten Welinder <terra@gnome.org>
* Release 1.12.28
2016-03-02 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c: Return complex numbers by value, not reference.
2016-02-23 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c: Properly use gnm_ldexp, not ldexp.
2016-02-18 Morten Welinder <terra@gnome.org>
* src/parse-util.c (unquote): Properly account backslashes. Fixes
#762278.
2016-02-12 Morten Welinder <terra@gnome.org>
* src/complex.h: Add a direct-value interface.
* src/ssconvert.c (run_solver): Also create solver reports as
indicated in options.
* src/cell-draw.c (cell_draw_simplify_attributes): Plug leak.
2016-02-10 Morten Welinder <terra@gnome.org>
* src/gnumeric.css (toolbarzone): Set padding for toolbar children
to 1px. While that may be a sligh increase for certain
themes/gtk+ versions, it is a large decrease for others, notably
what comes with an out-of-the-box OpenSuSE leap. Override in
~/.config/gtk-3.0/gtk.css if need be.
* src/wbc-gtk.c (cb_scroll_wheel): Use shift modifier with scroll
wheel for horizontal motion instead of alt. Window managers tend
to eat the latter.
2016-02-08 Morten Welinder <terra@gnome.org>
* src/graph.c (gnm_go_data_vector_eval)
(gnm_go_data_vector_finalize): Plug leak.
2016-02-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-02-06 Morten Welinder <terra@gnome.org>
* Release 1.12.27
2016-02-06 Morten Welinder <terra@gnome.org>
* configure.ac (goffice): Require latest for
go_complex_from_polar_pi.
* src/sf-gamma.c (complex_igamma): Apply fixup for upper gamma
when x<0 and a is real.
2016-02-04 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (complex_temme_D): Fix factorial computation.
(gnm_complex_continued_fraction): Fail if we would otherwise try
to rescale by 0. Fix termination condition.
(igamma_asymp): Fix term update.
(complex_igamma): Fix flavour fixup.
2016-02-02 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (complex_igamma): Try asymptotic expansion.
(gamma_error_factor): Extend to all positive numbers.
(pochhammer_small_n): Allow any x > 1.
(qbetaf): Use pochhammer_small_n as long as a > 1 and |b| < 1.
2016-02-01 Morten Welinder <terra@gnome.org>
* configure.ac (yacc, lex): Fail if the required program isn't
found.
2016-01-31 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (igamma_upper_cf): Extract generic code for
complex continued fractions.
2016-01-30 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (get_font): Under ssconvert, don't try
GtkStyleContext. Another ABI changes causes that to crash.
* src/value.c (find_column_of_field): Insist that the database be
a cell range, not an array.
2016-01-29 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (gnm_bessel_i): Use series for small x.
(bessel_ij_series): Rename from bessel_j_series and extend to
handle i also.
* src/sf-gamma.c (qbetaf): Improve accuracy in the case where one
argument is less than one.
* src/xml-sax-read.c (xml_sax_filter_condition): Leak fix and warn
about broken sheet filter.
* src/sheet-filter.c (gnm_filter_condition_new_single)
(gnm_filter_condition_new_double): Plug leak on error.
(gnm_filter_op_needs_value): Handle GNM_FILTER_UNUSED.
2016-01-28 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_get_str): fix for a range
value. [#761048]
2016-01-27 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (gnm_bessel_j, gnm_bessel_y): New
implementation.
* src/wbc-gtk.c (cb_add_menus_toolbars): Work around gtk+ bug with
css styling.
2016-01-23 Morten Welinder <terra@gnome.org>
* src/parser.y (yylex): Be careful about overflowing numeric
token. Fixes #761023.
2016-01-20 Morten Welinder <terra@gnome.org>
* src/complex.h: Namespace. Mostly for macros.
2016-01-16 Morten Welinder <terra@gnome.org>
* src/gnumeric-simple-canvas.c (gnm_simple_canvas_ungrab): Drop
unused time argument. All callers changed.
(gnm_simple_canvas_grab): Remove unused arguments and return
value. All callers changed.
* src/item-bar.c (item_bar_button_pressed): Handle multiple clicks
without regrabbing the focus. See #760639.
2016-01-13 Morten Welinder <terra@gnome.org>
* src/sstest.c (test_random_randsnorm)
(test_random_randbernoulli): Print expected stats.
* src/xml-sax-read.c (xml_sax_filter_condition): Ensure o0 and op1
are sane. Fixes #760544.
2016-01-08 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (drayleigh): Undo last change and improve accuracy.
2016-01-06 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (ebd0): Fix problem with overflow. [#760230]
2016-01-04 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_apply_range)
(sheet_style_set_range): Silently ignore inverted ranges.
2016-01-03 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_apply_range)
(sheet_style_set_range): Ensure sanity of range. Fixes #760102.
2016-01-02 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (expmx2h): Explicitly handle nan, just in case.
* src/go-data-cache.c (go_data_cache_records_set_size): Check for
zero record size. Fixes #760087.
* src/mathfunc.c (pow1p): Handle nan. Fixes #760085.
2016-01-01 Morten Welinder <terra@gnome.org>
* src/sheet.c (gnm_sheet_constructed): Chain ->constructed early.
* src/expr-name.c (expr_name_add): Improve check for circular name
defintion. Fixes #760046.
2015-12-28 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (convert): When separating sheets, move current
sheet to the front. See bug #694408.
* src/stf-export.c (gnm_stf_file_saver_save): If we add current
sheet, remove it at the end.
2015-12-28 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-12-28 Morten Welinder <terra@gnome.org>
* Release 1.12.26
2015-12-26 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (sheet_control_gui_new): Hook up screen
change here (on the grid).
(scg_class_init): Not here. We're not derived from GtkWidget.
* src/sheet-style.c (foreach_tile_r): Rename from foreach_tile.
(foreach_tile): New top-level function taking few parameters. All
callers changed.
2015-12-25 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-12-25 Morten Welinder <terra@gnome.org>
* Release 1.12.25
2015-12-22 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (xml_style_changed): Do more for input message and
validation.
2015-12-20 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_screen_changed): New handler to get
screen size.
(scg_resize): Limit frozen zones to screen size. Not idea, but
better than crashing.
2015-12-19 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_find_action): Search toolbar actions too.
2015-12-13 Morten Welinder <terra@gnome.org>
* src/sheet-merge.c (gnm_sheet_merge_relocate): Handle extending
merges on column/row insert. Fixes #504004.
2015-12-12 Morten Welinder <terra@gnome.org>
* src/sheet-merge.c (gnm_sheet_merge_relocate): Handling clipping
when the merge partially falls off the far end.
2015-12-10 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_action_group_add_action): New wrapper to
ensure actions get accel paths.
2015-12-09 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_find_action): New function to look in
multiple places for an action.
* src/gui-util.c (gnm_action_group_add_actions): Handle
translation context. Also handle toggle actions.
2015-12-08 Morten Welinder <terra@gnome.org>
* src/wbc-gtk-actions.c (actions): Use GnmActionEntry and C99
syntax.
* src/gui-util.c (gnm_action_group_add_actions): New function,
currently quite dumb.
* configure.ac (CC): Insist on c99.
2015-12-05 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (prayleigh, qrayleigh): New functions.
(drayleigh): Define in terms of dweibull.
2015-12-03 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (discpfuncinverter): Fix problem at left edge of
support. Fixes R.QHYPER(0.1,3,99,13)
2015-10-19 Morten Welinder <terra@gnome.org>
* src/func-builtin.c (gnumeric_table): Make sure to invalidate
in[2]. Fixes #752182.
2015-09-25 Morten Welinder <terra@gnome.org>
* src/func-builtin.c (gnumeric_table): Don't try to be smart and
avoid value copying. Fixes #752181.
(gnumeric_table): Handle repeated cells. Fixes #752178.
2015-09-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-09-20 Morten Welinder <terra@gnome.org>
* Release 1.12.24
2015-09-19 Jean Brefort <jean.brefort@normalesup.org>
* src/gui-file.c (gui_file_save_as): just change the extension not more
when the original filename has several dots. [ubuntu #1497344]
2015-09-11 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object.c (cb_so_snap_to_grid): fixed for one cell and absolute
anchors. [#754792]
2015-08-24 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object.c (sheet_object_update_bounds),
(sheet_object_set_sheet), (sheet_object_pts_to_anchor): make sure that
the objects bounds are always updated. Really fix printing.
* src/xml-sax-write.c (xml_write_objects): revert previous change.
2015-08-23 Jean Brefort <jean.brefort@normalesup.org>
* src/print.c (gnm_print_sheet_objects): a better fix for sheet objects
printing, but still not perfect.
* src/sheet-object.c (sheet_object_pts_to_anchor): ditto.
* src/xml-sax-write.c (xml_write_objects): ditto.
2015-08-22 Jean Brefort <jean.brefort@normalesup.org>
* src/print.c (gnm_print_sheet_objects): fix printing of sheet objects
with one cell or absolute anchors. [#753961]
* src/sheet-object.c (sheet_object_draw_cairo):
2015-07-28 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-07-28 Morten Welinder <terra@gnome.org>
* Release 1.12.23
2015-07-14 Morten Welinder <terra@gnome.org>
* schemas/org.gnome.gnumeric.dialogs.gschema.xml.in.in: Fix typo.
#752259.
2015-07-09 Morten Welinder <terra@gnome.org>
* src/position.c (gnm_cellpos_init_cellref_ss): Do a full modulo
operation. Fixes #752124.
2015-07-06 Morten Welinder <terra@gnome.org>
* src/func-builtin.c (gnumeric_table): Avoid FMR. Fixes #752021.
2015-07-05 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-graph.c (vector_end): fix array overflow. [#751971]
2015-07-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/value.c (value_compare_real): handle two empty values however
they appear
2015-07-03 Morten Welinder <terra@gnome.org>
* src/func-builtin.c (gnumeric_table): Return #REF! outside array
context.
2015-06-30 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_eval): Don't crash if an empty array makes
it all the way here.
2015-06-29 Morten Welinder <terra@gnome.org>
* src/func.c (function_iterate_argument_values): Improve name
handling. Part of #751660.
2015-06-28 Morten Welinder <terra@gnome.org>
* src/value-sheet.c (value_area_get_width, value_area_get_height):
Use the same normalization as value_area_foreach. Fixes #751390.
* src/stf.c (clear_stray_NULs): Also truncate invalid UTF-8.
Fixes #751577.
2015-06-26 Morten Welinder <terra@gnome.org>
* src/value.c (value_new_array_empty): Store value_new_empty(),
not NULL, in the slots. We can make this change because
value_new_empty() is a singleton that does not need to be
released. Fixes #751502.
2015-06-24 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-graph.c (dim_start): fix index test. [#751383]
2015-06-23 Jean Brefort <jean.brefort@normalesup.org>
* src/xml-sax-read.c (gnm_xml_finish_obj), (xml_sax_read_obj),
(xml_sax_object_end): ensure we always use the right state. [#751217]
2015-06-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* samples/excel/engfuns.xls: update to use correct lbm->g conversion
2015-06-20 Morten Welinder <terra@gnome.org>
* src/go-data-cache.c (go_data_cache_records_set_size): Check for
overflow.
(go_data_cache_records_fetch_index): If resizing failed return
NULL early.
2015-06-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/parse-util.h (_GnmConventions): add union_char field
* src/parser.y (yylex): handle union_char
(setup_state): set union_char
2015-06-18 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_read_obj): Only allow type names
specifying types derived from sheet objects. Fixes #751126.
(xml_sax_hlink): Similarly.
2015-06-16 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (handle_delayed_names): Check for circularity
in names. Fixes #751056.
2015-05-27 Morten Welinder <terra@gnome.org>
* src/print.c (compute_scale_fit_to): Attempt a workaround for fp
division by zero. Fixes #749917.
* src/gnm-so-filled.c (gnm_so_filled_draw_cairo): Plug leak.
2015-05-16 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-image.c (content_start): fixed leak, [see #749444,
comment #3]
2015-05-11 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_validation_msg): Fix clang warning about
something bad that will happen whenever FALSE equals TRUE.
* src/go-data-cache.c (go_data_cache_set_val): Use memcpy for
inline values.
* src/cell.c (gnm_cell_set_array): Improve preconditions.
2015-05-09 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_set_font_uline): Add sanity check.
2015-04-28 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (read_file_free_state): Plug leaks related to
malformed documents. Fixes #748596.
(xml_sax_unknown): Don't rely on xin->user_state here. Fixes
#748595.
2015-04-16 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-04-16 Morten Welinder <terra@gnome.org>
* Release 1.12.22
2015-04-15 Morten Welinder <terra@gnome.org>
* src/ranges.c (gnm_range_compare): New function.
2015-04-13 Jean Brefort <jean.brefort@normalesup.org>
* src/wbc-gtk.c (set_entry_contents): format number whenever possible.
(see #700599, comment #11).
2015-04-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-image.c (gnm_soi_assign_to_sheet): if there is no
sheet object name, try the image name.
2015-04-11 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (qcauchy): Handle cancellation.
* src/mathfunc.c (pcauchy): Simplify.
* src/sf-dpq.c (dnorm): Improve accuracy in certain far-tail cases.
(drayleigh): Import from fn-stat. Rename. Improve accuracy.
2015-04-09 Morten Welinder <terra@gnome.org>
* src/sheet-filter.c (filter_expr_eval): Fix UMR in the non-match
case.
2015-04-04 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_read_obj): Fix reading anchor mode.
Fixes #747356.
* src/xml-sax-write.c (xml_write_objects): Save only relevant
parts of the cell bound.
* src/sheet-control-gui.c (scg_object_coords_to_anchor):
Initialize parts of cell_bound not used.
2015-04-01 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (gnm_sogg_prep_sax_parser): Use
GNM_XML_2ND here too.
(gnm_sogg_sax_parser_done): Plug leak.
2015-03-30 Morten Welinder <terra@gnome.org>
* src/sheet-object.c (gnm_sheet_object_anchor_mode_get_type): New
function.
* src/xml-sax-read.c (xml_sax_read_obj): Use an enum for anchor
mode.
* src/sstest.c (test_random_randhyperg): Take var=0 case into
account when checking mean.
* src/sheet-object-graph.c (sheet_object_graph_new): Allow NULL
graph here.
2015-03-30 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.h: add support for absolute anchoring of sheet objects.
* src/item-grid.c: ditto.
* src/sheet-control-gui.c: ditto.
* src/sheet-filter.c: ditto.
* src/sheet-object-cell-comment.c: ditto.
* src/sheet-object-component.c: ditto.
* src/sheet-object-graph.c: ditto and make graphs not anymore resize with
cells by default. [#684450]
* src/sheet-object-image.c: make images don't resize with cells by default.
* src/sheet-object.c : add support for absolute anchoring of sheet objects.
* src/sheet-object.h: ditto.
* src/workbook-view.c: ditto.
* src/xml-sax-read.c: ditto.
* src/xml-sax-write.c: ditto.
2015-03-30 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (grammar): Use new libgsf check for "2nd".
2015-03-23 Morten Welinder <terra@gnome.org>
* src/sstest.c (rand_fractile_test): Plug leak.
2015-03-21 Morten Welinder <terra@gnome.org>
* src/sstest.c (rand_fractile_test): Add support for
non-continuous distributions.
* src/mathfunc.c (qgeom): Update to current version in R.
* src/gnm-random.c (random_geometric): Don't add one.
r.{d,p,q}geom all use the version with support {0,1,2,3,...}
2015-03-20 Morten Welinder <terra@gnome.org>
* src/sstest.c (test_random_randbinom): New test.
(test_random_randbetween): New test.
(test_random_randexp): New test.
(test_random_randpoisson): New test.
(test_random_randgeom): New test.
(test_random_randnegbinom): New test.
(test_random_randlog): New test.
(test_random_randdiscrete): New test.
(test_random_randgamma): New test.
(test_random_randtdist): New test.
(test_random_randuniform): New test.
(test_random_randfdist): New test.
(test_random_randcauchy): New test.
(test_random_randbeta): New test.
(test_random_randchisq): New test.
(test_random_randhyperg): New test.
* src/gnm-random.c (random_logarithmic): Fix. See #746449.
2015-03-19 Morten Welinder <terra@gnome.org>
* src/func.c (dump_samples): New function to dump all sample in
help documentation to csv format.
* src/sf-gamma.c (qbetaf): Return zero as result when a+b is a
non-positive integer, but neither a nor b is.
2015-03-07 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c: Use new go_xml_out_add_double.
* src/sheet-object-widget.c
(sheet_widget_adjustment_write_xml_sax): Use new
go_xml_out_add_double.
* src/sheet-object-image.c (gnm_soi_write_xml_sax): Use new
go_xml_out_add_double.
2015-03-05 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (sheet_object_image_set_image): Drop
copy_data argument and simply assume it.
2015-03-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-03-04 Morten Welinder <terra@gnome.org>
* Release 1.12.21
2015-03-03 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (gnm_xml_file_save_full): Back down on the
version we write and document why we can't easily increase that
version.
2015-03-02 Morten Welinder <terra@gnome.org>
* src/xml-io-version.h (GnumericXMLVersion): Add new dtd version.
* src/xml-sax-read.c (xml_sax_wb): Bring dtd list up to date.
(xml_sax_version): Bring version list up to date.
2015-03-01 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c
(sheet_widget_list_base_set_selection_value): Plug leak.
2015-02-28 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-image.c (gnm_soi_assign_to_sheet): ensure that the
pixbuf stores the image type.
2015-02-28 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (SheetObjectImage): Just keep the
image, not the bytes in addition.
(gnm_soi_class_init): Use property "image" of type GOImage instead
of "image-data" weirdness.
(gnm_soi_draw_cairo): Remove non-functional fallback.
(gnm_soi_default_size): Ditto.
2015-02-27 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (gnm_soi_get_property): Use a boxed
type for image data. Create image data if needed.
(SheetObjectImage): Use a properly allocated GByteArray.
* src/sheet-object-widget.c
(sheet_widget_adjustment_user_config_impl): Widgets must have
changed names at some point. Adjust for that.
2015-02-25 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sheet_widget_list_base_set_sheet):
Also evaluate here.
(SOW_MAKE_TYPE): Don't evaluate unless we have a sheet for the
contents.
2015-02-23 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sheet_widget_radio_button_get_value):
New function.
2015-02-21 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_so_set_adjustment_adj): horizontal is a
gboolean, not a double.
* src/sheet-object-widget.c
(sheet_widget_adjustment_write_xml_sax): Save with sufficient, not
fixed, precision.
(sheet_widget_adjustment_set_horizontal): Take advantage of this
new-fangled orientation for scrollbars.
2015-02-20 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c: Make checkbox' "active" writable.
(cb_button_released): Set value to FALSE here(!)
2015-02-18 Morten Welinder <terra@gnome.org>
* src/commands.c (cmd_search_replace_do_cell): Don't report and
error just because a cell with text format fails to produce an
expression. That's expected for text format.
2015-02-17 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (gnm_soi_get_property): Plug leak.
2015-02-11 Morten Welinder <terra@gnome.org>
* src/gnm-so-filled.c (gnm_so_filled_write_xml_sax): Don't bother
writing duplicate style so version 1.2 and earlier can read it.
2015-02-11 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (cb_assign_val): use go_nan instead of infinite for strings
that can't be convered to valid numbers.
2015-02-10 Morten Welinder <terra@gnome.org>
* src/gnm-so-line.c (gnm_so_line_draw_cairo): Simplify.
2015-02-06 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sheet_widget_adjustment_set_link)
(sheet_widget_button_set_link, sheet_widget_checkbox_set_link)
(sheet_widget_radio_button_set_link)
(sheet_widget_list_base_set_links)
(sheet_widget_adjustment_set_details): Only link if we have a
sheet.
2015-02-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-02-04 Morten Welinder <terra@gnome.org>
* Release 1.12.20
2015-01-30 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c
(sheet_widget_adjustment_set_horizontal): Make this public.
2015-01-23 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-01-23 Morten Welinder <terra@gnome.org>
* Release 1.12.19
2015-01-20 Morten Welinder <terra@gnome.org>
* src/gui-util.h (gnumeric_filter_modifiers): Drop reserved bits.
See bug #743130.
2015-01-19 Morten Welinder <terra@gnome.org>
* src/gutils.c (gnm_icon_dir): Remove.
* src/wbc-gtk.c (cb_sheet_label_drag_begin): Load arrow from glib
resources.
* src/sheet-object-image.c (gnm_soi_new_view): Load unknown-image
from glib resources.
* src/gui-util.c (gnumeric_load_image, gnumeric_load_pixbuf):
Delete.
* src/gnm.gresource.xml: pre-process xpm files. gdkpixbuf will
otherwise dump them in temporary files in order to load them.
* src/workbook.c (workbook_update_graphs): New function.
* src/workbook-view.c (workbook_view_new_from_input): Update
graphs.
2015-01-14 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_cell_content): When we fail to parse
an expression, make it a string instead of dropping it on the
floor.
2015-01-13 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_cell_content): When we discover a
missing shared expression, define a dummy version so we don't get
repeated errors.
2015-01-09 Morten Welinder <terra@gnome.org>
* src/value.c (value_compare_real): Rewrite. Handle errors and
sort them later than other values. This fixes #742601.
2015-01-01 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnumeric_message_dialog_create): Use icon theme
names, not stock ids.
* src/gnm-pane.c (update_control_point_colors): Avoid
gtk_style_context_get_background_color.
* src/item-cursor.c (ic_reload_style): Ditto.
2014-12-30 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (gnm_rendered_value_new):
GNM_HALIGN_DISTRIBUTED is justify+center. Fixes #726155.
2014-12-27 Morten Welinder <terra@gnome.org>
* src/colrow.c (colrow_set_visibility): Don't create columns/rows
unless we really have to.
2014-12-25 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (sog_cb_open_in_new_window): Fix
multihead issue.
* src/gnm-graph-window.c: Avoid GTK_STOCK_xxx completely.
* src/wbc-gtk-actions.c (SheetDirection): use proper icon.
* src/wbc-gtk.c (cb_sheet_direction_change): New function to fix
icon on sheet direction changes.
* src/wbc-gtk-actions.c: Eliminate many uses of GTK_STOCK_...
2014-12-24 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_show_save_dialog)
(wbcg_close_if_user_permits): Constant propagation.
* src/gui-util.c (gnumeric_message_dialog_create): Slightly less
GtkStock usage. (Maybe kill whole function? Only two users.)
2014-12-22 Morten Welinder <terra@gnome.org>
* icons/fake-index-theme: we need actions directories too.
2014-12-21 Morten Welinder <terra@gnome.org>
* src/item-bar.c (ib_reload_sizing_style): Add fallback for font
handling.
2014-12-20 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_insdel_colrow): Fix handling of too-big
count in delete, such as used from sheet resize.
2014-12-19 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Use putenv for win32
(before g_setenv is available).
2014-12-16 Morten Welinder <terra@gnome.org>
* src/sstest.c (test_insdel_rowcol_names): Use column name, not
number.
* src/sheet.c (sheet_insdel_colrow): Fix "sticky-end" setting for
the delete case.
2014-12-15 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_insdel_colrow): Rename from
sheet_style_insert_colrow and handled deletion too.
* src/sheet.c (sheet_insdel_colrow): Merge from sheet_insert_rows,
sheet_insert_cols, sheet_delete_rows, sheet_delete_cols. Simplify
and clean up.
* src/dependent.c (dependent_has_pos, dependent_move): New
functions.
2014-12-14 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_colrow_add): Make sure the slot we use is
free.
2014-12-11 Morten Welinder <terra@gnome.org>
* src/dependent.c (style_dep_debug_name): Include position too.
* src/sheet.c (sheet_colrow_add): Merge from sheet_col_add and
sheet_row_add.
(colrow_move): Change parameterization slightly.
2014-12-06 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_unant): Destroy item cursors. We
want them visually gone and g_object_unref does not guarantee
that.
* src/sheet.c (sheet_insert_rows, sheet_insert_cols): Clear style
dependents. A later step clears and re-applies style completely
for the moved area. Fixes #741197.
* src/sheet-style.c (sheet_style_clear_style_dependents): New
function.
* src/sheet.c (sheet_insert_rows, sheet_insert_cols)
(sheet_delete_cols, sheet_delete_rows): Plug leaks.
* src/command-context.c (gnm_cmd_context_error_splits_array): Plug
leak.
(gnm_cmd_context_error_splits_merge): Plug leak.
2014-11-15 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_object_unselect): Avoid crashing if
the wbc is already gone.
2014-11-09 Morten Welinder <terra@gnome.org>
* src/gui-clipboard.c (text_to_cell_region): Guard against NULL
data. Might fix Redhat #1160975.
2014-10-28 Morten Welinder <terra@gnome.org>
* src/style.c (find_font): Accept NULL font name.
2014-10-27 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_destroy_contents): Plug leak from fuzzed
code.
2014-10-27 Jean Brefort <jean.brefort@normalesup.org>
* src/item-cursor.c (cb_item_cursor_animation): use
goc_canvas_invalidate_region() for ants walking. Avoid drawing
outside of a draw event.
2014-10-26 Morten Welinder <terra@gnome.org>
* src/value.h (VALUE_IS_CELLRANGE, VALUE_IS_ARRAY): New macros.
Use throughout.
(GnmValue): Drop type union member. C99 requires that this be
accessed in a structure. We have v_any for that.
2014-10-25 Morten Welinder <terra@gnome.org>
* src/expr-impl.h (GNM_EXPR_GET_OPER): Redefine in a way that
ought to survive both gcc's aliasing analysis and valgrind's
bitfield problems.
2014-10-24 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_selection_info): Plug leak.
2014-10-21 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_dump_color): Also dump auto flag.
2014-09-25 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-09-25 Morten Welinder <terra@gnome.org>
* Release 1.12.18
2014-09-25 Morten Welinder <terra@gnome.org>
* src/sheet-filter.c (gnm_filter_condition_new_single)
(gnm_filter_condition_new_double): Fix preconditions. See
#735249.
2014-09-23 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Mess with gobject so it
doesn't spew deprecation warnings by default.
2014-09-11 Morten Welinder <terra@gnome.org>
* src/style.c (gnm_translate_underline_from_pango): Survive
PANGO_UNDERLINE_ERROR.
2014-06-09 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-06-09 Morten Welinder <terra@gnome.org>
* Release 1.12.17
2014-05-28 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (resize_pane_pos): Improve the situation
when we drag the handle into the col/row canvas.
* src/sheet-view.c (sv_freeze_panes): Add debug code.
* src/sheet-control-gui.c (scg_finalize): Get rid of the drag
handler. Fixes #730884.
2014-05-27 Morten Welinder <terra@gnome.org>
* src/gnm-pane.c (gnm_pane_header_init): Hold references to
col/row canvas. Fixes #730857.
(gnm_pane_dispose): Release references.
2014-05-23 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-05-23 Morten Welinder <terra@gnome.org>
* Release 1.12.16
2014-05-23 Morten Welinder <terra@gnome.org>
* src/clipboard.c (clipboard_copy_ranges_undo): New function. We
need better building blocks for commands; this is one such.
2014-05-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.c (cmd_hyperlink_undo): use posiitons rather than cells
(cmd_hyperlink_redo): ditto
(cmd_hyperlink_finalize): ditto
(cb_cmd_hyperlink_find_cells): ditto
2014-05-20 Morten Welinder <terra@gnome.org>
* src/gutils.c (gnm_hash_table_foreach_ordered): New function.
* src/gnm-so-filled.c (gnm_so_filled_write_xml_sax): Don't write
outline and fill colours that are auto, even for the 1.0 format.
* src/mstyle.c (gnm_style_link_dependents): Speed up certain large
conditional format ranges.
2014-05-14 Morten Welinder <terra@gnome.org>
* src/ssindex.c (ssindex): Use gnm_object_has_readable_prop.
* src/gutils.c (gnm_object_has_readable_prop): New function.
* configure.ac (scrollkeeper): Test if we have it.
2014-05-05 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (toolbar_context_menu): Remove
HAVE_GTK_HANDLE_BOX_FLOAT_WINDOW. That has been unconditionally
false for years and is unsupported in gtk+.
2014-04-30 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-04-30 Morten Welinder <terra@gnome.org>
* Release 1.12.15
2014-04-23 Morten Welinder <terra@gnome.org>
* src/complete.c (complete_idle): Avoid abort().
* src/wbc-gtk.c (cb_update_idle): Clear ->idle when we cancel the
source.
2014-04-22 Morten Welinder <terra@gnome.org>
* src/style-color.c (gnm_color_new_name): Remove. All calls
replaced with calls to gnm_color_new_go.
* src/sheet-style.c (sheet_style_init_size): Plug leak.
* src/style-color.c (gnm_color_shutdown): Free the auto colours.
2014-04-21 Morten Welinder <terra@gnome.org>
* src/gnumeric.css (GnmNotebook): Set padding for top and bottom
only in the hop of fixing #728465.
2014-04-13 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-04-13 Morten Welinder <terra@gnome.org>
* Release 1.12.14
2014-04-11 Morten Welinder <terra@gnome.org>
* src/item-bar.c: Get colours when we draw; only get sizing
relevant information at odd times, in particular when parent
widgets may be insensitive, such as during a load-onto-pristine.
Fixes #728007.
2014-04-10 Morten Welinder <terra@gnome.org>
* src/item-bar.c (ib_reload_style): Add debug code.
2014-04-09 Morten Welinder <terra@gnome.org>
* src/number-match.c (format_match_datetime): Plug leak on certain
failure cases.
2014-04-02 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (pochhammer): Plain floor is good enough for
integer test.
2014-03-30 Morten Welinder <terra@gnome.org>
* src/application.c (gnm_app_remove_extra_ui): Remove from global
list of extra uis.
2014-03-28 Morten Welinder <terra@gnome.org>
* src/main-application.c (main): Move Ubuntu hack earlier.
2014-03-27 Morten Welinder <terra@gnome.org>
* src/main-application.c (main): Attempt to banish ubuntu's
overlay scrollbar which don't work.
2014-03-21 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_eval): Make "Contains..."
case insensitve and allow wildcards.
* src/gutils.c (gnm_excel_search_impl): New function, extracted
from fn-string.
* src/style-conditions.c (generate_end_match): Use case
insensitive comparison. Pull negation into the operator.
(gnm_style_cond_eval): "Start with..." and "Ends with..." are case
insensitive.
2014-03-18 Morten Welinder <terra@gnome.org>
* src/gui-util.c (kill_popup_menu): One more try at really killing
the context menu after we're done with it.
* src/item-grid.c (item_grid_realize): Plug leak.
2014-03-18 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-03-18 Morten Welinder <terra@gnome.org>
* Release 1.12.13
2014-03-18 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_screen_changed): Plug leak by unloading css
providers from screens on exit.
* src/sheet-style.c (cell_tile_dump): Less debug chatter.
2014-03-17 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_log2): Remove. Use libm's log2.
2014-03-16 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_eval): Survive dynamic deps in conditional
formats. I'm not positive we do things right, but this avoids
criticals, at least.
* src/cell.c (cell_set_expr_internal): Don't change an existing
value.
2014-03-15 Morten Welinder <terra@gnome.org>
* src/style-border.c (gnm_border_shutdown): New function to help
debug leaks. Shutdown border_none here.
* src/style-color.c (gnm_color_shutdown): Not here.
2014-03-15 Jean Brefort <jean.brefort@normalesup.org>
* src/item-grid.c (item_grid_realize), (cb_cursor_come_to_rest): move
the tooltip where it will not immediatly be destroyed after creation.
[really fix #706659]
2014-03-14 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_style): Don't write a font name
if we don't have any.
2014-03-14 Jean Brefort <jean.brefort@normalesup.org>
* src/gui-util.c (gnm_canvas_get_position): fix tooltip position. [#725941]
2014-03-13 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_eval): New function
extracted from gnm_style_conditions_eval. Make "equal" case
insensitive. Fixes #726246.
* src/ssconvert.c (convert): Show resize message only if verbose.
2014-03-12 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_get_alternate_expr): New
function.
(gnm_style_cond_canonicalize): New function.
* src/ssconvert.c (convert): only print "Using exporter ..." if
--verbose is given, and print it to stderr.
2014-03-11 Morten Welinder <terra@gnome.org>
* src/sheet.c (cb_set_markup): Don't mess directly with
cell->value. We need to trigger a re-render. Fixes #726086.
* src/wbc-gtk-edit.c (wbcg_edit_finish): Also supply the markup
for the pre-validation assignment.
* src/sheet.c (sheet_cell_set_text): Put markup on the value
before assigning it to the cell.
2014-03-10 Morten Welinder <terra@gnome.org>
* gnumeric.xsd: Update valign/halign attributes. Update print
setup.
* src/sheet-filter.c (gnm_filter_condition_new_single)
(gnm_filter_condition_new_double): Add preconditions.
2014-03-07 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_adjust_foreground_attributes): Fix warning.
2014-03-05 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_top_is_volatile): New function.
* src/workbook-view.c (workbook_view_new_from_input): Queue all
volatile expressions.
* src/dependent.c (workbook_queue_volatile_recalc): New function.
(dependent_is_volatile): New function.
* src/sheet.c (sheet_range_set_expr_cb, sheet_range_set_text):
Don't set the initial range here.
* src/expr.c (gnm_expr_top_first_funcall)
(gnm_expr_contains_subtotal, gnm_expr_top_get_ranges)
(gnm_expr_top_referenced_sheets): Rewrite in terms of
gnm_expr_walk.
(gnm_expr_top_get_boundingbox): Set initial range here.
* src/expr-name.c (expr_name_check_for_loop, cb_expr_name_in_use):
Ditto.
2014-03-03 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-03-03 Morten Welinder <terra@gnome.org>
* Release 1.12.12
2014-03-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/wbc-gtk.c (cb_bnotebook_page_reordered): provide undo
2014-03-02 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_workbook_debug_info): New debug flag
name-collections.
(wbcg_sheet_order_changed): Mark ui as being updated.
(cb_bnotebook_page_reordered): Ignore during UI update.
* src/expr-name.c (gnm_named_expr_collection_dump)
(gnm_named_expr_collection_sanity_check): New function.
* src/application.c (gnm_app_sanity_check): New function.
* src/expr-name.c (gnm_named_expr_collection_new): Don't use the
string inside the GOString as a hash key. It can change.
(gnm_named_expr_collection_foreach): As a consequence of the
above, the first argument to the handler for
gnm_named_expr_collection_foreach changes to something
unspecified. All callers changed.
* src/sheet.c (sheet_dup): Don't flip display-outlines for the new
sheet.
* src/xml-sax-read.c (xml_sax_named_expr_end): Avoid criticals
when encountering strangeness.
2014-02-28 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (resize_pane_pos, set_resize_pane_pos):
If row/column canvas is not visible, ignore them.
(scg_gtk_paned_set_position): Don't allow negative position.
Fixes #725375.
* src/ssdiff.c (diff_sheets_attrs): Detect more sheet attribute
changes.
2014-02-27 Jean Brefort <jean.brefort@normalesup.org>
* src/item-grid.c (item_grid_draw_region): fix background filling for
rtl sheets. [#725276]
2014-02-25 Morten Welinder <terra@gnome.org>
* src/gui-util.c (kill_popup_menu): Avoid criticals inside gtk+.
(gnumeric_create_popup_menu): Drop return value from handler.
* src/xml-sax-write.c (xml_write_objects): Sort sheet objects that
are cell comments by position.
2014-02-24 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (xml_write_geometry): Don't output a 0x0 size.
* src/colrow.c (colrow_equal): Don't use floating-point equality
here. Allow a difference of 1e-5 pt for size.
2014-02-23 Morten Welinder <terra@gnome.org>
* src/sheet.c (gnm_sheet_resize_main): When expanding a sheet,
fill in the new areas with most common styles for the rows to the
left of the new columns or the columns above the new area.
2014-02-19 Morten Welinder <terra@gnome.org>
* plugins/fn-math/functions.c (gnumeric_log2): Use gnm_log2.
(gnumeric_log): Use gnm_log2 and gnm_log10 as appropriate.
* src/mathfunc.c (gnm_log2): New function.
2014-02-18 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (xml_style_changed): Report differences for
auto-color settings.
2014-02-17 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (convert): Add --resize option.
2014-02-16 Jean Brefort <jean.brefort@normalesup.org>
* src/item-grid.c (item_grid_realize): fix persistence of
hyperlink tips. [see #724108]
2014-02-16 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-02-16 Morten Welinder <terra@gnome.org>
* Release 1.12.11
2014-02-16 Morten Welinder <terra@gnome.org>
* src/func.c (function_dump_defs): Update boilerplate.
2014-02-11 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-02-11 Morten Welinder <terra@gnome.org>
* Release 1.12.10
2014-02-07 Morten Welinder <terra@gnome.org>
* src/wbc-gtk-edit.c (wbcg_edit_finish): Disallow array formula
entry on top of merged cells. Fixes #723600.
2014-02-06 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-component.c (destroy_cb), (gnm_soc_user_config):
a better fix to previous issue.
2014-01-30 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_add_menus_toolbars): Tentatively request small
toolbar icons.
* src/item-cursor.c (item_cursor_draw): Make the ant animation
smoother (when not using the fallback). Avoid using hard light
for ant-ing -- that doesn't work for the same reason as alpha not
working. Always use phase=0 for non-ant stipples.
(GnmItemCursor): Use the canvas item's visibility flag instead of
rolling our own.
2014-01-29 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbc_gtk_init): Add style classes for toolbar zones.
* src/item-cursor.c (cb_item_cursor_animation): Do a run-time
check for bad clipping somewhere in gtk+ or theme land.
2014-01-28 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-component.c (gnm_soc_user_config): release the new
component reference to the workbook.
2014-01-27 Morten Welinder <terra@gnome.org>
* src/func.c (function_dump_defs): Undo wiki change.
2014-01-21 Morten Welinder <terra@gnome.org>
* src/item-cursor.c (cb_item_cursor_animation): Drastically lower
the amount of work we do for ant-ing. Fixes #381011, patch from
Jean.
(ic_reload_style): Ignore alpha component of ant colours.
2014-01-17 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_len),
(gnm_go_data_vector_load_values): accept 3D values for vector data.
[#722294]
2014-01-16 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_adjust_foreground_attributes): Renamed from
cb_darken_foreground_attributes and change to take non-white
background into account.
2014-01-12 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (expmx2h): Split out from dnorm.
(dhyper): Round the chosen "p" to float to improve accuracy of
"q".
2014-01-11 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (pow1p): Improve accuracy.
(R_D_nonint): Fix rounding problem.
(ebd0): New extended version of bd0.
(dpois_raw, dbinom_raw): Use ebd0.
(dbinom_raw): Handle x==n and x==0 much better.
2014-01-08 Morten Welinder <terra@gnome.org>
* src/wbc-gtk-actions.c (cb_file_sendto): Simplify using
g_mkdtemp_full.
* src/mathfunc.c (dpois_raw): Detect underflow in direct formula.
* src/gui-file.h: Namespace improvements. Also make gui_file_read
return the WorkbookView instead of a boolean.
2014-01-01 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (dlnorm): Go crazy with accuracy.
2013-12-31 Morten Welinder <terra@gnome.org>
* src/sf-dpq.c (pfuncinverter, discpfuncinverter): Extract from
mathfunc.c
2013-12-30 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (dnorm): Improve accuracy for x>5 (normalized).
(bd0): Reimplement.
(dpois_raw): Avoid going through logs, if possible.
2013-12-25 Morten Welinder <terra@gnome.org>
* src/item-grid.c (cb_cursor_come_to_rest): Clear ->tip_timer when
we return FALSE so we don't try to remove the source later.
2013-12-22 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_widget_measure_string): New function
allowing the elimination of all gtk_style_context_get_font calls.
2013-12-19 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (qfactf): Squeeze a few extra bits out of this,
especially when |x|<<1. Ditto for x<-1.
2013-12-17 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (complex_gamma): Turn a complex division into a
multiplication.
2013-12-14 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (complex_igamma): New function.
2013-12-12 Mario Rugiero <mrugiero@gmail.com>
* */*.c: Fix some leaks and null dereferences pointed out by
cppcheck.
2013-12-12 Morten Welinder <terra@gnome.org>
* src/parser.y (array_row): Avoid overrunning string when multiple
missing closing parentheses are detected. Fixes #720353.
2013-12-11 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnumeric_popup_menu): Use the screen from
gdk_event_get_screen, not from ->screen. This might fix #720182.
* src/*.c: Use accessor function for GdkEvent when convenient.
2013-12-07 Morten Welinder <terra@gnome.org>
* src/application.c (gnm_app_init): Don't allocate a
GtkRecentManager if we are not in gui mode.
* src/position.c (gnm_cellref_hash): Avoid undefined signed integer
behaviour.
* src/dependent.c (deprange_hash): Ditto.
2013-12-04 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (gamma_error_factor): Add extra term.
2013-12-07 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (qgammaf): Avoid losing the least significant bit
of the argument for [-1.5;-0.5].
* src/complex.c (complex_fact): Avoid infinite recursion for 0 <
Re z < 1/2. Avoid some overflow.
2013-12-02 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (bessel_y): Use the J series when possible.
2013-12-07 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (bessel_j): Use the taylor series in the
parameter range where that makes sense.
* src/sf-gamma.c (gnm_lbeta3): Improve accuracy.
(gnm_beta): Ditto.
2013-11-30 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (pochhammer): Drop give_log arguments. Extend to
negative values.
2013-11-28 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-11-28 Morten Welinder <terra@gnome.org>
* Release 1.12.9
2013-11-25 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c: Move lgamma_r and lgamma fallbacks to here from
mathfunc.c
2013-11-19 Morten Welinder <terra@gnome.org>
* src/print.c (print_page): Fix check for missing object. Fixes
#712662.
2013-11-18 Morten Welinder <terra@gnome.org>
* src/sf-trig.c: Split out trigonometric functions from mathfunc.c
2013-11-15 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (reduce_pi_half): New function.
2013-11-14 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_sinpi, gnm_cospi): New functions.
(bessel_i, etc, qfactf, lgamma_r): Use gnm_sinpi and gnm_cospi.
2013-11-13 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (lgamma_r): Fix fallback. Didn't work for x<10.
2013-11-13 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object.c (sheet_object_view_button2_pressed),
(sheet_object_view_class_init): implement double click for graph sheets.
[#712216]
2013-11-12 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_sheet_label_button_press): Don't stop signal
emission.
(cb_bnotebook_page_reordered): New function.
(wbc_gtk_create_notebook_area): Attach a handler for reordering.
* src/mathfunc.c (gnm_cot): Work around gcc/glibc bug.
2013-11-06 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_acoth): Improve accuracy for |x| near 1.
2013-11-06 Jean Brefort <jean.brefort@normalesup.org>
* src/workbook-view.c: add more introspection related comments.
* src/workbook.c: ditto.
2013-11-03 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (bessel_i, etc.): Do argument reduction for
sin/cos before scaling by pi.
2013-11-01 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (dpois_raw): Handler x=0 as in newer R.
(gnm_gamma): Protect against unnecessary overflow at top of range.
2013-10-31 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (qgamma): Flip tail for high values of p. This
avoids accuracy problems since any cdf is completely flat in terms
of floating point values when going sufficiently far into the
tail.
(qtukey): Ditto.
(qbeta): Ditto.
(J_bessel): Extend xlrg_BESS_IJ to match current R.
(permut): Route this into pochhammer.
(qfact): New function. Tabulate 0! through 50000! using quad
precision arithmetic.
(combin, fact, pochhammer): Improve accuracy using qfact.
2013-10-22 Morten Welinder <terra@gnome.org>
* src/func.c (function_call_with_exprs): Move flags argument into
structure.
2013-10-19 Morten Welinder <terra@gnome.org>
* src/hlink.c (_gnm_hlink_init): New function.
* src/libgnumeric.c (gnm_init): Use _gnm_hlink_init.
2013-10-07 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-10-07 Morten Welinder <terra@gnome.org>
* Release 1.12.8
2013-10-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/cmd-edit.c (cmd_paste): chceck for locked cells
2013-10-03 Morten Welinder <terra@gnome.org>
* src/item-cursor.c (item_cursor_draw): Drop expose area
optimization that may not be correct with current gtk. See bug
#709320.
2013-09-29 Morten Welinder <terra@gnome.org>
* src/main-application.c: Include <io.h> for win32.
* src/wbc-gtk-actions.c: Include gutils.h for win32.
2013-09-25 Morten Welinder <terra@gnome.org>
* src/gnumeric.css: Use lighter green for function marker.
2013-09-01 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-09-01 Morten Welinder <terra@gnome.org>
* Release 1.12.7
2013-08-29 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_find_pane): Check for NULL pane.
Fixes #707047.
2013-08-28 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_gamma): Improve precision for large
arguments.
(gnm_yn): Not needed anymore.
(bessel_i): Don't mark error strings for translation.
2013-08-27 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-08-27 Morten Welinder <terra@gnome.org>
* Release 1.12.6
2013-08-26 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (cell_tile_dump): New function for debugging.
(internal_style_list): Add fast pre-optimization to bring down the
number of entries before we start messing with hashes. Fixes
#699045.
2013-08-22 Jean Brefort <jean.brefort@normalesup.org>
* src/wbc-gtk.c (wbcg_data_allocator_editor): initialize
GraphDimEditor::changed. See bug 706591 comment #2.
2013-08-19 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-08-19 Morten Welinder <terra@gnome.org>
* Release 1.12.5
2013-08-15 Morten Welinder <terra@gnome.org>
* src/dependent.c (dep_hash_destroy): Relink the changed dep.
Fixes #706095.
* src/sheet.c (sheet_destroy_contents): Also get rid of solver
parameters. See bug 705913, comment 6.
2013-08-13 Morten Welinder <terra@gnome.org>
* src/gnm-style-impl.h (_GnmStyle): Switch ->deps to a GPtrArray.
2013-08-12 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sow_create_widget): New function.
Add sheet-object class to widgets.
2013-08-12 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (sheet_widget_frame_draw_cairo): set
initial colour
(sheet_widget_button_draw_cairo): also scale line thickness
(sheet_widget_checkbox_draw_cairo): scale button size
(sheet_widget_radio_button_draw_cairo): scale button size
2013-08-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (draw_cairo_text): add 'scale'
argument and change all callers
2013-08-09 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (get_font): add fall-backs
2013-08-09 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (sheet_widget_button_draw_cairo): Use
draw_cairo_text.
(draw_cairo_text): add h-vcenter argument and change all callers
2013-08-09 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-widget.c (cb_range_destroyed),
(sheet_widget_scrollbar_create_widget),
(sheet_widget_spinbutton_create_widget),
(sheet_widget_slider_create_widget): avoid crashing after destroying a
SheetWidgetAdjustment associated widget. [see Gtk+ bug #705692]
2013-08-09 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sheet_widget_button_draw_cairo): Use
get_font.
(get_font): New function extracted from draw_cairo_text.
2013-08-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (draw_cairo_text): use GtkStyleContext
if possible
2013-08-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (draw_cairo_text): add arguments to
allow multi-paragraph with a highlighted line. Change all callers
(sheet_widget_list_draw_cairo): use draw_cairo_text
2013-08-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (sheet_widget_frame_draw_cairo): use
cairo version for Gnuemric too.
(sheet_widget_button_draw_cairo): ditto
(sheet_widget_scrollbar_draw_cairo): ditto
(sheet_widget_spinbutton_draw_cairo): ditto
(sheet_widget_slider_draw_cairo): ditto
(sheet_widget_checkbox_draw_cairo): ditto
(sheet_widget_radio_button_draw_cairo): ditto
(sheet_widget_list_draw_cairo): ditto
(sheet_widget_combo_draw_cairo): ditto
2013-08-08 Morten Welinder <terra@gnome.org>
* src/parse-util.c (r1c1_get_index): Handle integer overflow.
Reduce crazy relative offsets.
2013-08-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (draw_cairo_text): add arguments and
change all callers
(sheet_widget_frame_draw_cairo): new
(sheet_widget_button_draw_cairo): new
(sheet_widget_scrollbar_horizontal_draw_cairo): new
(sheet_widget_scrollbar_vertical_draw_cairo): new
(sheet_widget_scrollbar_class_init): connect the above
(sheet_widget_spinbutton_draw_cairo): new
(sheet_widget_spinbutton_class_init): connect the above
(sheet_widget_slider_horizontal_draw_cairo): new
(sheet_widget_slider_vertical_draw_cairo): new
(sheet_widget_slider_draw_cairo): new
(sheet_widget_slider_class_init): connect the above
(sheet_widget_list_draw_cairo): new
(sheet_widget_list_class_init): connect the above
(sheet_widget_combo_draw_cairo): new
(sheet_widget_combo_class_init): connect the above
2013-08-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (SOW_MAKE_TYPE): add fn_draw_cairo,
change all uses of this macro
(draw_cairo_text): new
(sheet_widget_checkbox_draw_cairo): new
(sheet_widget_radio_button_draw_cairo): new
2013-08-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (sheet_widget_draw_cairo): avoid using
gtk_offscreen_window_new without a default screen (see bugs #705638
and #705640)
2013-08-07 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (main): Initialize gtk+ without opening any
display.
2013-08-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (scg_show_im_tooltip): handle rtl sheets
2013-08-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui-priv.h (_SheetControlGUI): add fields
* src/sheet-control-gui.c (scg_init): init new fields
(scg_im_destroy): new
(scg_finalize): call scg_im_destroy
(cb_cell_im_timer): new
(scg_find_pane): new
(scg_show_im_tooltip): new
(scg_class_init): init new field
* src/sheet-control-priv.h: add field
* src/sheet-control.c: add virtual
* src/sheet-control.h: add virtual
* src/sheet-view.c (sheet_view_edit_pos_tool_tips): new
(sv_update): call sheet_view_edit_pos_tool_tips
* src/sheet.c (sheet_col_get_distance_pixels): the defaults need to be
in pixels
(sheet_row_get_distance_pixels): new
* src/sheet.h (sheet_row_get_distance_pixels): new
2013-08-03 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-graph.c (gnm_sogg_prep_sax_parser): accept <graph:Type>
nodes in guppi graphs. [Debian #718594]
2013-08-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/workbook-view.c (wb_view_preferred_size): interpret 0 as
'default'
2013-08-02 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (context_menu_handler): add argument to
dialog_cell_format call
* src/wbc-gtk-actions.c (cb_format_cells): add argument to
dialog_cell_format call
(cb_data_validate): ditto
2013-07-30 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_style_border): Make sure we have a
colour. Fixes rest of #705031.
2013-07-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/func.c (gnm_func_lookup_prefix): do not include placeholders
2013-07-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
for Dmitry Smirnov
* gnumeric.desktop.in: add ODS files
2013-07-23 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_values): really load all
values for multiple ranges.
2013-07-19 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_is_valid): Even stricter
check: the enum has a hole in the middle. Fixes #704562.
2013-07-19 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-so-filled.c (gnm_so_filled_draw_cairo): fix text wrap when
printing.
* src/gnm-so-path.c (gnm_so_path_draw_cairo): ditto.
2013-07-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/gnm-so-path.c (gnm_so_path_class_init): add new property
(gnm_so_path_set_property): ditto
(gnm_so_path_get_property): ditto
2013-07-18 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-so-path.c (so_path_view_set_bounds),
(cb_gnm_so_path_changed): a better fix for the text position.
2013-07-17 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-so-filled.c (so_filled_view_set_bounds),
(cb_gnm_so_filled_changed): fix text wrap. [#704417]
* src/gnm-so-path.c (so_path_view_set_bounds),
(cb_gnm_so_path_changed): fix text wrap in paths too.
2013-07-16 Morten Welinder <terra@gnome.org>
* src/sheet.c (sheet_foreach_cell_in_range): Avoid overflow when
computing range size. Fixes #704325.
2013-07-15 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_cmp): Borders can be NULL; deal with
that. Fixes #704004.
* src/expr.c (gnm_expr_new_range_ctor): Undo previous change.
* src/dependent.c (link_range_dep, unlink_range_dep): Protect
against oversize range.
2013-07-12 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_range_op): When constructing a range, make
sure it falls within the sheet.
(gnm_expr_new_range_ctor): Don't optimize to range if the two
parts are on different sheets. Fixes #704109.
2013-07-10 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-07-10 Morten Welinder <terra@gnome.org>
* Release 1.12.4
2013-07-10 Morten Welinder <terra@gnome.org>
* src/value.c (parse_criteria): Patterns should anchor at the end
(#703770) and be case insensitive (no bug#).
2013-07-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-image.c (gnm_soi_assign_to_sheet): do not try
to create an image of unknown type
2013-07-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/graph.c (gnm_go_data_vector_load_len): use consistent
signage
(cb_assign_val): quieten warning about signed/unsigned comparison
2013-07-03 Morten Welinder <terra@gnome.org>
* src/graph.c (gnm_go_data_vector_load_len): Improve handling of
crazy-large ranges.
(cb_assign_val): Ditto.
2013-07-02 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (struct ISL): Use guint64 for areas of ranges.
(cb_style_list_add_node): Ditto.
(verify_hashes): Ditto.
(internal_style_list): Ditto.
* src/expr-name.c (expr_name_set_is_placeholder): Rearrange the
deck chairs.
2013-07-01 Morten Welinder <terra@gnome.org>
* configure.ac (long double): Crude use -lm for long double
function checks. Fixes #703397.
2013-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/expr.c (gnm_expr_list_copy): new
* src/expr.h (gnm_expr_list_copy): new
2013-06-26 Morten Welinder <terra@gnome.org>
* src/style-conditions.c (gnm_style_cond_is_valid): Check sanity
of ->op before using it. Fixes #703143.
2013-06-26 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-so-path.c (gnm_so_path_new_view): return NULL if there is no path.
[#703052]
(gnm_so_path_copy): fixed copy with multiple paths.
2013-06-25 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-06-25 Morten Welinder <terra@gnome.org>
* Release 1.12.3
2013-06-24 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_solver_start): Ensure we have a
sheet. Fixes #703006.
2013-06-23 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/gui-clipboard.c (x_clipboard_get_cb): take care of the case
without sheet
2013-06-22 Jean Brefort <jean.brefort@normalesup.org>
* src/mstyle.c (gnm_style_set_pattern): don't accept GNM_SHEET_PATTERNS as
a valid pattern. [#702833]
* src/pattern.c (gnumeric_background_set): ditto.
2013-06-21 Morten Welinder <terra@gnome.org>
* src/item-grid.c (item_grid_draw_region): Plug leak.
* src/item-bar.c (ib_reload_style): Plug leak.
2013-06-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/wbc-gtk.c (show_gui): protect against excessively large
preferred widow sizes
2013-06-14 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (dim_start): Don't crash on NULL desc.
* src/workbook.c (workbook_sheet_delete): Debug.
(workbook_dispose): Also clear style here. Styles can have
dependents now. Fixes #702218.
2013-06-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-view.c (sv_sheet_r1c1_changed): check for NULL selection
2013-06-12 Morten Welinder <terra@gnome.org>
* src/sheet-merge.c (gnm_sheet_merge_add): Ensure range is sane.
Fixes #702101.
2013-06-04 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (xml_style_changed): Teach this a bit about links.
2013-06-01 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (scg_comment_display_filter_cb): new
(scg_comment_display): adjust background and fontcolor if necessary
2013-06-01 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/item-grid.c (cb_cursor_come_to_rest):
gnumeric_position_tooltip needs the tooltip size, so load the text
before calling it.
2013-05-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/item-grid.c (item_grid_button_released): do not trigger hyper link
with button 2
2013-05-27 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (pnorm2): Drop log_p argument. We don't need it
and we aren't very good at it.
2013-05-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* component/Gnumeric-embed.xml.in: add accelerator
* src/GNOME_Gnumeric-gtk.xml.in: add accelerator
* src/wbc-gtk-actions.c (cb_edit_goto_cell_indicator): new
(EditGotoCellIndicator): new
* src/wbc-gtk.c (cb_post_activate): do not interfere with EditGotoCellIndicator
(wbcg_focus_current_cell_indicator): new
* src/wbc-gtk.h (wbcg_focus_current_cell_indicator): new
2013-05-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* component/Gnumeric-embed.xml.in: ctrl-a will be handled in gnm-pane.c
* src/GNOME_Gnumeric-gtk.xml.in: ctrl-a will be handled in gnm-pane.c
* src/wbc-gtk-actions.c: ctrl-a will be handled in gnm-pane.c
* src/gnm-pane.c (gnm_pane_key_mode_sheet): recognize and handle ctrl-a
2013-05-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/item-grid.c (item_grid_button_pressed): make buttons 1 and 2
behave the same as far as cell selection is concerned. This fixes
bug #700792
(item_grid_button_released): ditto
2013-05-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet.c (sheet_get_extent): add argument to indicate whether
to include hidden cells
(cb_sheet_get_extent): handle hidden cells setting
(sheet_get_printarea): do not include hidden cells
* src/sheet.h (sheet_get_extent): add argument and change all
callers
2013-05-26 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (ptukey_wprob): Use as many intervals as needed.
Termiate when contributions vanish.
2013-05-24 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (R_ptukey): Accelerate handling of right tail of
the outer integral.
(pfuncinverter): Handle lack of dfunc (poorly).
2013-05-23 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (ptukey_otsum): Split integration of a single
interval out from out from R_ptukey.
(R_ptukey): Split the interval nearest 0 into a sequence of
intervals over which the integrand looks a lot more like a
polynomial. This fixes accuracy problems for low degrees of
freedom.
* src/sheet-style.c (internal_style_list): Fix critical.
2013-05-22 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (R_ptukey): Even more C, even less Fortran.
2013-05-21 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (R_ptukey): More C, less Fortran.
2013-05-19 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (ptukey_wprob): Sanitize handling of integration
boundaries.
(pnorm2): Get rid of mu and sigma arguments. Improve accuracy.
2013-05-18 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (pnorm2): New function.
(R_ptukey): New function imported from R with local improvements.
2013-05-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/print.c (gnm_create_widget_cb): by default observe
manual page breaks
2013-05-14 Morten Welinder <terra@gnome.org>
* src/rangefunc.c (gnm_range_multinomial): Add range check.
(gnm_range_geometric_mean): Handle two FIXMEs.
2013-05-13 Morten Welinder <terra@gnome.org>
* src/*.c: Mark gobject property strings as P_(...).
2013-05-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.c (cmd_merge_data_redo): unref merge_contents
2013-05-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.c (cmd_merge_data_redo): use gnm_cell_set_value
rather than gnm_cell_assign_value
2013-05-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-utils.c (gnm_sheet_guess_data_range): also check
first column
2013-05-05 Morten Welinder <terra@gnome.org>
* src/dependent.c (style_dep_eval): New function. Re-clear the
rendered value here. Fixes #699647.
2013-05-03 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (create_undo_redo): Add Ctrl-Shift-z as alternate
accelerator for redo. Fixes #699579.
(wbc_gtk_create_notebook_area): Mark the button notebook as non
focusable.
* src/sheet.c (sheet_range_set_text_cb): Add redraw.
2013-05-01 Morten Welinder <terra@gnome.org>
* src/print-info.c: Add gsf includes to make things work with
libgsf 1.14.24. Redhat #957851.
2013-04-29 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (cb_write_cell): Ignore completely empty
cells.
2013-04-26 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-04-26 Morten Welinder <terra@gnome.org>
* Release 1.12.2
2013-04-26 Morten Welinder <terra@gnome.org>
* src/gnumeric.css (GnmItemBar): Make red labels for selected
row/column items the default.
2013-04-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/wbc-gtk-actions.c: rename some items in the statistics menu
2013-04-24 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_convert_markup_to_pango): Add a target
widget parameter. All callers changed.
* src/sheet-control-gui.c (scg_init): Ditto comment.timer and
delayedMovement.timer.
* src/item-cursor.c (gnm_item_cursor_init): Ditto
animation_cursor.
* src/application.c (_gnm_app_flag_windows_changed): Ditto for
windows_update_timer.
* src/item-edit.c (GnmItemEdit): change type of blink_timer to
guint to match glib. Use 0 as undefined since (guint)-1 is a
valid tag.
* src/gnm-pane.c (gnm_pane_init): Ditto sliding_timer (nee
sliding).
2013-04-23 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_link_dependents): Fix segfault.
* src/item-edit.c (gnm_item_edit_init): Set ->blink_timer to avoid
critical. Fixes #698680.
* src/gui-file.c (gui_file_save_as): For export, change extension.
Fixes #698636.
2013-04-22 Morten Welinder <terra@gnome.org>
* src/gui-file.c (gui_file_read): Re-take focus if the read fails.
Somehow fixes #625687.
2013-04-20 Morten Welinder <terra@gnome.org>
* src/go-data-slicer-field.c
(go_data_slicer_field_set_field_type_pos): Add precondition for
slicer.
2013-04-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/print-info.c (render_title): new
2013-04-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet.c (sheet_range_set_expr_cb): don't try to empty empty
cells.
(sheet_range_set_text): ditto
2013-04-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (scg_comment_display): use spacing rather
than padding.
2013-04-22 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_comment_display): Display by-line.
2013-04-19 Morten Welinder <terra@gnome.org>
* src/sheet-control-gui.c (scg_comment_display): Abandon the text
view approach. Fixes #689283.
* src/wbc-gtk.c (wbc_gtk_init_borders): Show also in vertical
mode.
(wbc_gtk_init_color_fore): Ditto.
(wbc_gtk_init_color_back): Ditto.
2013-04-17 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbc_gtk_init): Add also a vertical font chooser
button.
* src/wbc-gtk-impl.h (_WBCGtk): Rename font_name member to
font_name_haction.
* src/wbc-gtk.c (wbc_gtk_init_font_name): Show the font button
only for horizontal toolbars.
* src/gui-file.c (file_saver_format_changed_cb): New function to
change the extension when the format is changed.
(gui_file_save_as): Don't try to hide the extension -- it
interferes with the file chooser's completion. Fixes #695839.
2013-04-16 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbcg_update_action_sensitivity): Turn on context
menu for graph sheets. Fixes #685446.
(sheet_menu_label_run): Disable resize for graph sheets.
* src/value.c (parse_criteria): Anchor only at start. Fixes
#661800.
(parse_criteria): Handle criteria "=" and "<>" (with no value
after the operator) special. These test for empty and non-empty
values. Fixes #686156.
* src/gutils.c (gnm_regcomp_XL): Split argument "full" into
"anchor_start" and "anchor_end". All callers changed.
2013-04-15 Morten Welinder <terra@gnome.org>
* src/application.c (add_icon): Plug leak.
* src/number-match.c (format_match_decimal_number): Try also major
non-locale currencies. Fixes #577768.
2013-04-13 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (pochhammer): Improve precision a bit.
(binomialcf): Lower cfSmall by 10^3. This helps
pbeta(0.9,10,0.5).
* configure.ac (GETTEXT_PACKAGE): Add version number so that
doesn't prevent multiple versions from co-existing.
* src/sheet.c (sheet_range_calc_spans): Don't mark the sheet
dirty. Callers already appear to handle this when needed
and not when not wanted. Fixes #697927.
2013-04-12 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_owent): Fix a==1 special case. Part of
#697850.
(pnbinom): Allow prob==1 (already fixed in R) and n==0 (now
reported to R).
(fact): Use table for n<=1; rewrite using pochhammer otherwise.
2013-04-11 Morten Welinder <terra@gnome.org>
* src/parse-util.c (rangeref_parse): Parse Sheet!#REF and return a
reference with invalid_sheet. Fixes #683494.
* src/complex.c (complex_to_string): Drop format arguments. All
callers changed. Make up a format with enough precision for round
tripping. Fixes #697634.
2013-04-09 Morten Welinder <terra@gnome.org>
* src/complex.c (complex_from_string): Make this handle embedded
spaces systematically.
(is_unit_imaginary): Delete.
2013-04-09 Morten Welinder <terra@gnome.org>
* src/complex.c (complex_pow): Use Goffice's copy.
2013-04-05 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_screen_changed): Re-use the css provider for
new screens. Add hack for pre-GTK 3.4.
* src/mathfunc.c (gnm_owent): New function.
2013-04-04 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_len): correctly evaluate array
functions used as vectors. [697281]
2013-04-04 Jean Brefort <jean.brefort@normalesup.org>
* src/graph.c (gnm_go_data_vector_load_values),
(gnm_go_data_vector_get_str): fix values and strings loading in case of
arrays. [697107]
2013-04-03 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_sheet_tab_change): Use g_object_set to set
attributes of the tab.
* src/sheet-control-gui.c (sheet_control_gui_new): Create a
GnmNotebookButton, not an EditableLabel.
2013-04-02 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_wbcg_drag_motion): Fix test for notebook tab
widget.
(cb_wbcg_drag_leave): Ditto.
2013-03-27 Morten Welinder <terra@gnome.org>
* src/gnumeric-conf.c (gnm_conf_get_detachable_toolbars): Fix the
key we look up. When did that change?
2013-03-27 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-widget.c (sheet_widget_list_create_widget):
remove the frame.
2013-03-26 Morten Welinder <terra@gnome.org>
* src/item-edit.c: Theme the in-cell edit background color.
* src/gnumeric-fwd.h: Merge most of gnumeric.h and gui-gnumeric.h
into here.
src/gui-gnumeric.h: Remove.
* src/pattern.c (gnumeric_background_set): Insist that ctxt is
non-NULL if there is a selection.
(gnumeric_background_set_gtk): Delete. Make callers use
gnumeric_background_set.
* src/preview-grid.c (preview_grid_draw_background): Always
provide a context to gnumeric_background_set.
* src/item-edit.c (item_edit_draw): Ditto.
* src/item-cursor.c (ic_reload_style): Use class, not state, to
separate the different cursor types. Separate autofill colouring
from drag ditto.
2013-03-25 Morten Welinder <terra@gnome.org>
* src/item-cursor.c (gnm_item_cursor_class_init): Change type of
color to GOColor.
(ic_reload_style): Theme some of the cursor colors.
* src/gnm-pane.c (gnm_pane_expr_cursor_bound_set): Take GOColor,
not colour name.
* src/item-bar.c: Rename: ItemBar to GnmItemBar.
* src/gnumeric.css: use deprecated px-free syntax for padding, so
gtk+ 3.2 can deal with it.
* src/wbc-gtk.c (cb_screen_changed): Install error handler so we
can suppress deprecations.
* src/sheet-control-gui.c (cb_select_all_btn_draw): Fix drawing of
the "all" button.
* src/item-bar.c (ib_reload_style): Load fonts from style.
2013-03-24 Morten Welinder <terra@gnome.org>
* src/item-grid.c (item_grid_draw_region): Draw the background at
the right coordinates!
2013-03-23 Morten Welinder <terra@gnome.org>
* src/item-bar.c (ib_draw_cell): There's no point in going to and
from GOColor here. Just use the color as-is.
2013-03-19 Morten Welinder <terra@gnome.org>
* src/application.c (install_icons): Install also the icon themed
icons. No idea why we have both.
* src/wbc-gtk.c (wbc_gtk_setup_icons, add_icon): Remove.
* src/Makefile.am (SUBDIRS): No longer enter pixmaps.
(embedded_imgs): Add the rest from pixmaps.
* configure.ac: No longer create src/pixmaps/Makefile
* src/gui-util.c (gnumeric_load_image, gnumeric_load_pixbuf): Make
these work for resources and absolute paths.
2013-03-19 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-control-gui.c (cb_collect_objects_to_commit): fixed
not sizeable objects bounds after dragging when zoom is not 100%.
2013-03-18 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (gnm_font_action_create_tool_item): Disable the
filter. It takes just long enough to be irritating.
2013-03-17 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (gnm_font_action_create_tool_item): Don't show the
style since we're not picking it explicitly.
(cb_font_filter): Fix leak.
2013-03-14 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (gnm_font_action_create_tool_item): Add filter to
ignore non-scalable fonts.
2013-03-11 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (wbc_gtk_init_font_name): New implementation.
2013-03-10 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (list_them): Skip savers/openers that require
interaction. (We don't have any yet.)
* src/stf.c (stf_read_workbook): Set error when we fail due to
lack of GUI.
(stf_init): Mark the configurable saver/opener as interactive.
* src/ssconvert.c (convert): Fix error handling. Fixes #695529.
2013-03-09 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-03-09 Morten Welinder <terra@gnome.org>
* Release 1.12.1
2013-03-06 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (list_actions): Handle a null group.
2013-03-03 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Don't call deprecated
g_thread_init if compiled with later than glib 2.32.0.
2013-03-02 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-pane-impl.h: remove alignments.
* src/gnm-pane.c (gnm_pane_header_init): dittO;
* src/gnm-plugin.c (plugin_service_ui_read_xml): fixed a C++ type comment.
* src/item-bar.c (item_bar_calc_size): force recalc when indent changed.
* src/sheet-control-gui-priv.h: remove all tables by one grid.
* src/sheet-control-gui.c (cb_table_destroy), (scg_set_panes),
(set_resize_pane_pos), (idle_resize), (cb_canvas_resize),
(sheet_control_gui_new), (scg_finalize), (scg_adjust_preferences),
(scg_mode_edit): ditto.
* src/wbc-gtk.c (cb_show_sheet), (cb_sheet_label_button_press),
(cb_sheet_visibility_change), (wbcg_sheet_add),
(wbcg_sheet_remove), (wbcg_sheet_focus),
(wbcg_sheet_order_changed), (wbcg_sheet_remove_all),
(wbcg_get_nth_scg): ditto.
2013-03-01 Jean Brefort <jean.brefort@normalesup.org>
* src/gui-file.c (gui_file_open): GtkTable to GtkGrid.
* src/print.c (gnm_create_widget_cb): ditto.
* src/sheet-object-graph.c (sheet_object_graph_guru): ditto.
2013-03-01 Morten Welinder <terra@gnome.org>
* src/mathfunc.h: Make sure the "q" functions take "p" as their
first argument, not "x".
2013-03-01 Jean Brefort <jean.brefort@normalesup.org>
reviewed by: <delete if not using a buddy>
* INSTALL:
* src/sheet-object-widget.c (sheet_widget_button_user_config),
(sheet_widget_adjustment_user_config_impl),
(sheet_widget_checkbox_user_config),
(sheet_widget_radio_button_user_config):
* src/wbc-gtk.c (wbc_gtk_init):
2013-02-28 Morten Welinder <terra@gnome.org>
* configure.ac: remove the DISABLE_DEPRECATED defines even from
development versions. We now get the information through gcc
warnings.
(solver): Make solver code unconditional. Feel free to not
distribute the relevant plugins.
2013-02-26 Morten Welinder <terra@gnome.org>
* src/ssconvert.c (convert): Avoid segfault. Fixes #694741.
2013-02-26 Jean Brefort <jean.brefort@normalesup.org>
* src/number-match.c: more introspection warnings.
2013-02-23 Morten Welinder <terra@gnome.org>
* */*.c: Avoid G_OBJECT casts for g_object_ref and g_object_unref.
2013-02-21 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_foreach): Take a GFunc, not a
GHFunc. All callers changed. Impose a robust ordering.
(sh_all_styles): New function replacing sh_foreach.
2013-02-20 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (dim_start): Survive malformed xml.
2013-02-20 Jean Brefort <jean.brefort@normalesup.org>
* configure.ac: make configure --with-python fail when some
dependency is missing.
2013-02-17 Morten Welinder <terra@gnome.org>
* configure.ac (set_more_warnings): Improve support for clang.
2013-02-16 Morten Welinder <terra@gnome.org>
* *.c: Clear up confusion between GtkStateType and GtkStateFlags.
(Most cases a matter of 0 vs. 0.)
2013-02-16 Jean Brefort <jean.brefort@normalesup.org>
* schemas/org.gnome.gnumeric.dialogs.gschema.xml.in.in: fixed
default value for stf export format.
* src/dependent.c: fix introspection warnings.
* src/sheet-style.c: ditto.
2013-02-15 Morten Welinder <terra@gnome.org>
* configure.ac (libspreadsheet_gtk_reqs): Explicitly require gtk
3.2.0 just like goffice.
* src/gui-util.c (gnm_store_text_tag_attr_in_pango): Adjust to
requiring gtk 3.2
2013-02-14 Morten Welinder <terra@gnome.org>
* src/gnm-so-path.c (so_path_view_set_bounds): Use G_MAXDOUBLE,
not MAXDOUBLE. Fixes #693761.
2013-02-10 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (cb_unlink): gnm_style_unlink_dependents
doesn't belong here. We handle everything in rstyle_apply.
2013-02-08 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (rstyle_apply): Take extra range argument and
link/unlink style dependents. All callers changed.
(sheet_style_shutdown): Set default style for whole sheet to
ensure style dependents get cleared.
2013-02-07 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (cell_tile_optimize): Implement
ptr-matrix-to-matrix optimization and use it to simplify things.
* src/dependent.c (GnmStyleDependent): New type of dependent.
When triggered, the cells in which it resised will be rerendered
and redrawn.
* src/mstyle.c (gnm_style_link_dependents)
(gnm_style_unlink_dependents): New functions to manage style
dependents due to conditional formatting.
2013-02-06 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (vector_apply_pstyle): Turn loop structure
inside-out in anticipation of future changes.
(col_indicies, row_indicies): Alignment of the corners of apply_to
is only relevant if we are within the tile.
2013-02-06 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (tile_is_uniform): Extract from
cell_tile_optimize.
(vector_apply_pstyle): Don't return a value.
(cell_tile_apply): Use tile_is_uniform.
2013-02-05 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_get): Simplify with "while"
instead of crazy "goto".
(cell_tile_apply): Simplify the covers-whole-tile case.
* src/sheet.h (Sheet): Remove max_width and max_height members.
All users fixed.
* src/dependent.h (GnmDependentClass): Add pos handler.
* src/dependent.c (dependent_pos): Use pos handler.
(dummy_dep_eval): New null handler for GnmDependentClass::eval.
2013-02-04 Morten Welinder <terra@gnome.org>
* src/dependent.c (dependent_pos): Make global.
* src/position.c (eval_pos_init_dep, parse_pos_init_dep): Use
dependent_pos.
* src/ssconvert.c (run_tool_test): Add code for running the
regression tool.
(convert): Run an analysis tool if requested. (For testing.)
2013-02-02 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (rstyle_ctor): Split into rstyle_ctor_style
and rstyle_ctor_pstyle. All callers changed.
2013-01-18 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_matrix_new, gnm_matrix_free)
(gnm_matrix_is_empty, gnm_matrix_from_value, gnm_matrix_to_value):
New matrix support.
(gnm_matrix_multiply): Renamed from mmult and changed to use above.
(gnm_matrix_eigen): Change to take GnmMatrix arguments.
2013-01-15 Morten Welinder <terra@gnome.org>
* src/stf.c (stf_read_workbook_auto_csvtab): Fix crash for text
import from command line.
2013-01-15 Jean Brefort <jean.brefort@normalesup.org>
* configure.ac: renamed configure.in and update obsolete macros.
* configure.in: ditto.
2013-01-14 Colin Watson <cjwatson@ubuntu.com>
* configure.in: Add
distutils.sysconfig.get_python_inc(plat_specific=True) to Python
includes.
2013-01-14 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-control-gui.c (sheet_control_gui_new): typo.
* src/sheet-object-graph.c (cb_graph_size_changed): do not remoe
twice the top and bottom margins when displaying a graph
sheet. [#691472]
2013-01-10 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_lookup_or_add_placeholder): Drop copy_name
argument and assume TRUE. Drop scope name and assume NULL (which
is what all callers should have used). All callers changed.
(gnm_func_add_placeholder): Ditto.
(invent_name): Downcase the preferred name.
(gnm_func_add_placeholder_full): Eliminate GNM_FUNC_FREE_NAME.
(gnm_func_add): Initialize arg_names_p.
* src/gnm-plugin.c (plugin_service_function_group_activate):
Upgrade existing placeholder functions as needed.
* src/func.c (gnm_func_upgrade_placeholder): Rename from
gnm_func_upgrade_placeholder. Take GnmFunc argument, not name.
2013-01-10 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_add_placeholder_localized): New function.
(gnm_func_add_placeholder_full): Extract from
gnm_func_add_placeholder. Handle localization better.
(gnm_func_set_localized_name): New function.
(gnm_func_free, gnm_func_get_name): Use
gnm_func_set_localized_name.
* src/parse-util.c (std_func_map): Improve handling of unknown
function names.
* src/func.c (gnm_func_group_remove_func): Factor this out from...
(gnm_func_free): ...here.
2013-01-09 Morten Welinder <terra@gnome.org>
* src/symbol.c: delete.
* src/func.c: rewrite to use GHashTable instead of symbol.c
(gnm_func_lookup_prefix): Take extra argument indicating whether
to search translated names. Caller changed.
* src/parse-util.c (std_func_map): Lookup translated name as
needed.
(parse_util_init): Add enviroment magic to turn on translated
functions names. This is not ready for prime time and should be
controlled by a user preference eventually.
* src/mathfunc.c (gnm_matrix_eigen): Silence warning. Document a
bit.
2013-01-07 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (gnm_matrix_eigen): Detect underflow of the
pivot. Use gnm_hypot where possible.
2013-01-04 Morten Welinder <terra@gnome.org>
* src/gui-clipboard.c (gnm_x_claim_clipboard): Take a GdkDisplay
as argument. Keep track of displays.
(gnm_x_disown_clipboard): New function.
* src/application.c (gnm_app_clipboard_clear): Use
gnm_x_disown_clipboard to make things multi-head safe.
2013-01-03 Morten Welinder <terra@gnome.org>
* src/collect.c (collect_floats): Fix handling of
COLLECT_IGNORE_ERRORS.
(collect_strings): Ditto.
(callback_function_collect): Handle new flag COLLECT_ZERO_ERRORS.
2013-01-01 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_set_from_pango_attribute): Don't use
deprecated goffice stuff.
* src/cellspan.c (cell_register_span, cell_calc_span): Remove
unused variable.
* src/gnm-pane.c (control_point_leave_notify): Ditto.
* src/gnm-plugin.c (plugin_service_solver_activate): Ditto.
* src/wbc-gtk.c (wbc_gtk_create_edit_area): Ditto.
* src/application.c (gnm_app_history_add): Kill warning.
2012-12-31 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_resize): Double off-by-one.
Fixed #690929.
* src/ssdiff.c: Introduce --highlight mode.
2012-12-30 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (main): Add option to send output to a file.
2012-12-29 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (diff): Use C locale.
(ignore_cell): Ignore arrays, except for the corner.
(output_cell): New function taking proper care of value types,
conventions, etc.
(xml_cell_changed): Use output_cell.
(compare_corresponding_cells): Don't use entered_text here either,
although it's harmless.
(output_cell, compare_corresponding_cells): Handle value formats
too.
2012-12-28 Valek Filippov <frob@df.ru>
* gnm-pane.c, shell-control-gui.c: Replaced deprecated
gdk_window_get_pointer calls.
2012-12-28 Morten Welinder <terra@gnome.org>
* src/*.c: Eliminate use of printf.
* src/sheet-style.c (sheet_style_range_foreach): Move handling of
range offset here. This may need to move further.
* src/ssdiff.c (cb_diff_sheets_styles_2): From here.
(diff_sheets_cells): Ignore completely empty cells.
(xml_sheet_start): Change meaning of Old and New attributes to be
index_in_wb and absent when workbook doesn't have the sheet.
(xml_style_changed): Describe style differences.
2012-12-27 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (diff_sheets): Compare styles too.
* src/sheet-style.c (sheet_style_range_foreach): Add optional
range argument. All callers changed.
2012-12-24 Morten Welinder <terra@gnome.org>
* src/ssdiff.c (def_cell_changed): Merge cell_added and
cell_removed handlers into the cell_changed handler.
(main): Add --xml option.
* configure.in: ssconvert, ssindex, and ssgrep are no longer
configurable. We need ssconvert for the test and it's silly
anyway.
2012-12-18 Morten Welinder <terra@gnome.org>
* configure.in: Post-release bump.
|